We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 887a2ec + 515fcd3 commit 1281038Copy full SHA for 1281038
1 file changed
.github/workflows/npmPackage.yml
@@ -2,23 +2,25 @@ name: Publish to NPM
2
on:
3
push:
4
branches: [main]
5
-
6
jobs:
7
build:
8
runs-on: ubuntu-latest
+ permissions:
9
+ contents: read
10
+ id-token: write
11
steps:
12
- uses: actions/checkout@v4
- - uses: actions/setup-node@v3
13
+ - uses: actions/setup-node@v4
14
with:
- node-version: "18.x"
15
+ node-version: "22.x"
16
registry-url: "https://registry.npmjs.org"
17
+ - name: Install latest npm
18
+ run: npm install -g npm@latest
19
- name: Install Dependencies
20
run: yarn install
21
- name: Run Tests
22
run: yarn test
23
- name: Build
24
run: yarn build
25
- name: Publish to NPM
- run: npm publish
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
26
+ run: npm publish
0 commit comments