diff --git a/.github/workflows/release-web.yml b/.github/workflows/release-web.yml index 4976b10..cd8e18a 100644 --- a/.github/workflows/release-web.yml +++ b/.github/workflows/release-web.yml @@ -1,6 +1,10 @@ name: Web Release on: + push: + branches: + - main + workflow_dispatch: # Allow manual triggering of this job in case of failures inputs: version: @@ -89,9 +93,10 @@ jobs: with: github_token: ${{ secrets.GH_RW_TOKEN }} branch: "main" - tags: true + # Don't push tags here because Changeset pushes them in the Build & Publish step + tags: false - ## Create a release on Github. + # Create a release on Github. - name: Create GH Release uses: softprops/action-gh-release@v1 env: @@ -113,3 +118,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_CI_PUBLISH_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_PUBLISH_TOKEN }} diff --git a/package.json b/package.json index f6fed47..bff4575 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "tokens-config": "ts-node scripts/tokens-config", "typecheck": "tsc -p . --noEmit", "prerelease": "yarn clean:tokens && yarn build:tokens", - "release": "changeset publish --tags latest" + "release": "changeset publish --access public --tags latest" }, "devDependencies": { "@changesets/cli": "^2.26.2",