mirror of
https://github.com/idrawjs/idraw
synced 2026-05-23 17:48:23 +00:00
ci: update github action
This commit is contained in:
parent
85e87ab2d9
commit
c1369efe03
1 changed files with 22 additions and 0 deletions
22
.github/workflows/release.yml
vendored
Normal file
22
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Publish Package to npmjs
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# Setup .npmrc file to publish to npm
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: npm run test
|
||||
- run: npm run build
|
||||
- run: cd packages/types/
|
||||
- run: npm publish
|
||||
- run: cd ../util/
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
Loading…
Reference in a new issue