Skip to content

Commit 1281038

Browse files
authored
Merge pull request #30 from Vestaboard/feature/new-npm-script
NPM is now a trusted OIDC provider of this github repo
2 parents 887a2ec + 515fcd3 commit 1281038

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/npmPackage.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,25 @@ name: Publish to NPM
22
on:
33
push:
44
branches: [main]
5-
65
jobs:
76
build:
87
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
id-token: write
911
steps:
1012
- uses: actions/checkout@v4
11-
- uses: actions/setup-node@v3
13+
- uses: actions/setup-node@v4
1214
with:
13-
node-version: "18.x"
15+
node-version: "22.x"
1416
registry-url: "https://registry.npmjs.org"
17+
- name: Install latest npm
18+
run: npm install -g npm@latest
1519
- name: Install Dependencies
1620
run: yarn install
1721
- name: Run Tests
1822
run: yarn test
1923
- name: Build
2024
run: yarn build
2125
- name: Publish to NPM
22-
run: npm publish
23-
env:
24-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
26+
run: npm publish

0 commit comments

Comments
 (0)