Skip to content

Commit b380dd3

Browse files
authored
Upgrade publish workflow and npm command
Updated GitHub Actions workflow to use newer action versions and changed npm publish command.
1 parent d06f4b7 commit b380dd3

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@ on:
1010
jobs:
1111
build-and-publish:
1212
runs-on: ubuntu-latest
13-
env:
14-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
15-
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1613
permissions:
1714
contents: read
1815
id-token: write
1916
steps:
20-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v7
2118

22-
- uses: actions/setup-node@v4
19+
- uses: actions/setup-node@v7
2320
with:
24-
node-version: '22'
21+
node-version: '24'
2522
registry-url: 'https://registry.npmjs.org'
26-
always-auth: true
23+
package-manager-cache: false
24+
25+
- name: Update npm for trusted publishing
26+
run: |
27+
npm install -g npm@latest
28+
npm --version
2729
2830
- name: Enable Corepack & activate Yarn latest
2931
run: |
@@ -44,6 +46,4 @@ jobs:
4446
run: yarn build
4547

4648
- name: Publish to npm
47-
run: yarn npm publish --access public
48-
env:
49-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
run: npm publish --access public

0 commit comments

Comments
 (0)