feat: adding github workflow

This commit is contained in:
carlos
2022-06-04 16:18:55 -04:00
parent 7bcc09d53d
commit 0eb5e4fd56
3 changed files with 43 additions and 6 deletions

23
workflows/publish.yml Normal file
View File

@ -0,0 +1,23 @@
name: "release"
on:
push:
branches:
- master
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
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}