Skip to content

Commit 2dd0719

Browse files
authored
fix: attempt at release (#1934)
Signed-off-by: Shurtu-gal <ashishpadhy1729@gmail.com>
1 parent 9621ea0 commit 2dd0719

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release-with-changesets.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
git config --global core.autocrlf false
8989
git config --global core.eol lf
9090
- name: Checkout repository
91-
uses: actions/checkout@v4
91+
uses: actions/checkout@v6
9292
- name: Check if Node.js project and has package.json
9393
id: packagejson
9494
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
@@ -101,7 +101,7 @@ jobs:
101101
node-version: ${{ vars.NODE_VERSION }}
102102
- if: steps.packagejson.outputs.exists == 'true'
103103
name: Setup Node.js
104-
uses: actions/setup-node@v4
104+
uses: actions/setup-node@v6
105105
with:
106106
node-version: "${{ steps.lockversion.outputs.version }}"
107107
registry-url: "https://registry.npmjs.org"
@@ -124,7 +124,9 @@ jobs:
124124
version: npm run bump:version
125125
commit: "chore(release): release and bump versions of packages"
126126
title: "chore(release): release and bump versions of packages"
127-
publish: npx -p @changesets/cli@2.27.7 changeset publish
127+
# Set NODE_AUTH_TOKEN to empty to use trusted publishing with
128+
# See: https://github.com/actions/setup-node/issues/1440
129+
publish: NODE_AUTH_TOKEN="" npx -p @changesets/cli@2.27.7 changeset publish
128130
setupGitUser: false
129131
env:
130132
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)