Skip to content

Commit 45610d7

Browse files
authored
Merge pull request #50 from open-audio-stack/feature/release-action
Trusted publishing for npm packages
2 parents 34d3f2b + 51e65c9 commit 45610d7

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ jobs:
1919
- name: Setup NodeJs
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: '20.x'
22+
node-version: '20'
2323
registry-url: 'https://registry.npmjs.org'
2424

25+
- name: Update npm
26+
run: npm install -g npm@latest
27+
2528
- name: Install dependencies
2629
run: npm ci
2730

2831
- name: Build and run code
2932
run: npm run build
3033

3134
- name: Publish
32-
run: npm publish --provenance --access public
33-
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: npm publish

0 commit comments

Comments
 (0)