Skip to content

Commit

Permalink
feat: add actions and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorovvvv committed Jul 3, 2022
1 parent 8761a25 commit 1282856
Show file tree
Hide file tree
Showing 5 changed files with 5,423 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'npm-publish'
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: 'install'
run: npm install
- name: 'create package'
run: npm run package
- name: 'publish'
run: npm publish ./package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 1282856

Please sign in to comment.