feat: add github actions
This commit is contained in:
parent
4908398d68
commit
eecce71614
20
.github/workflows/publishing.yml
vendored
Normal file
20
.github/workflows/publishing.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Publish Package
|
||||
run-name: Publishing Package to npmjs registry
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
jobs:
|
||||
publishing:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: yarn
|
||||
- run: yarn npm publish
|
||||
Loading…
x
Reference in New Issue
Block a user