feat: adding github workflow
This commit is contained in:
parent
4be80ecbe6
commit
fca22ac234
23
.github/workflows/publish.yml
vendored
Normal file
23
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: "release"
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: 🚀 release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2.4.2
|
||||
- name: node
|
||||
uses: actions/setup-node@v3.2.0
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: https://registry.npmjs.org
|
||||
- name: publish
|
||||
run: npm publish --access public
|
||||
working-directory: my-package
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
Loading…
x
Reference in New Issue
Block a user