Skip to content

Commit 5fd305c

Browse files
committed
chore: update publish yml
1 parent d89638e commit 5fd305c

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,19 @@ jobs:
2222
outputs:
2323
published: ${{ steps.changesets.outputs.published }}
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v6
2626

2727
- name: Install PNPM
2828
uses: pnpm/action-setup@v6
2929
with:
3030
version: 11.9.0
3131

3232
- name: Setup Node.js
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@v6
3434
with:
35+
registry-url: https://registry.npmjs.org/
3536
node-version-file: '.nvmrc'
36-
cache: 'pnpm'
37+
package-manager-cache: false
3738

3839
- name: Install
3940
run: pnpm install --frozen-lockfile --strict-peer-dependencies
@@ -44,14 +45,6 @@ jobs:
4445
RELEASE_VER=$(pnpm changeset status --output=./release.json && node scripts/ci/release-version.js | tail -n 1)
4546
echo "version=${RELEASE_VER}" >> $GITHUB_OUTPUT
4647
47-
- name: Creating .npmrc
48-
run: |
49-
cat << EOF > "$HOME/.npmrc"
50-
//registry.npmjs.org/:_authToken=$NPM_TOKEN
51-
EOF
52-
env:
53-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
54-
5548
- name: Create Release Pull Request or Publish to npm
5649
id: changesets
5750
uses: changesets/action@v1
@@ -61,4 +54,3 @@ jobs:
6154
commit: 'chore(release): release'
6255
env:
6356
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)