Skip to content

Commit 2847d90

Browse files
committed
github actions
1 parent 8026de4 commit 2847d90

2 files changed

Lines changed: 26 additions & 46 deletions

File tree

.github/workflows/build-and-release.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: publish-release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
npmjs:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: '20.x'
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- run: npm install
23+
24+
- run: npm publish --provenance --access public
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)