From 33b0b92b290c1a950dfec25a50b97ef36de88a9b Mon Sep 17 00:00:00 2001 From: Vincent Massaro Date: Wed, 13 Sep 2023 11:07:46 -0400 Subject: [PATCH 1/3] fix: add YALESITES_BUILD_TOKEN to semantic release action --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6632cb701..ae897c4d51 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: branches: master env: GH_TOKEN: ${{ secrets.YALESITES_BUILD_TOKEN }} + YALESITES_BUILD_TOKEN: ${{ secrets.YALESITES_BUILD_TOKEN }} jobs: build: runs-on: ubuntu-latest @@ -15,8 +16,6 @@ jobs: uses: actions/setup-node@v3 - name: Install - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} run: npm install - name: Release From 0c3065ffed2b7889f98e2f3a802207622d3c93ab Mon Sep 17 00:00:00 2001 From: Vincent Massaro Date: Fri, 13 Oct 2023 11:37:01 -0400 Subject: [PATCH 2/3] fix: don't write version number into repo --- package.json | 2 +- .../custom/yalesites_profile/yalesites_profile.info.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e6397dcffc..ea6ac0c842 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "files": [ "web/profiles/custom/yalesites_profile/yalesites_profile.info.yml" ], - "from": "version: .*", + "from": "#version:", "to": "version: ${nextRelease.version}", "results": [ { diff --git a/web/profiles/custom/yalesites_profile/yalesites_profile.info.yml b/web/profiles/custom/yalesites_profile/yalesites_profile.info.yml index fcbb53f4d6..3818e01ef7 100644 --- a/web/profiles/custom/yalesites_profile/yalesites_profile.info.yml +++ b/web/profiles/custom/yalesites_profile/yalesites_profile.info.yml @@ -1,6 +1,6 @@ name: YaleSites Profile type: profile -version: 1.0 +#version: description: 'Install profile for managing YaleSites platform sites.' core_version_requirement: '^9 || ^10' From d81128a7e841b911d52c28e06311b1ea6142b97e Mon Sep 17 00:00:00 2001 From: Vincent Massaro Date: Fri, 13 Oct 2023 11:37:19 -0400 Subject: [PATCH 3/3] chore: don't commit version number change into master --- package.json | 8 -------- 1 file changed, 8 deletions(-) diff --git a/package.json b/package.json index ea6ac0c842..941512f18f 100644 --- a/package.json +++ b/package.json @@ -76,14 +76,6 @@ ] } ], - [ - "@semantic-release/git", - { - "assets": [ - "web/profiles/custom/yalesites_profile/yalesites_profile.info.yml" - ] - } - ], "@semantic-release/release-notes-generator", "@semantic-release/github" ]