Skip to content

Commit

Permalink
Add publish package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalumickas committed Sep 23, 2020
1 parent 68ad23f commit 2212915
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://npm.pkg.github.com/
scope: '@vietaapp'
- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 2212915

Please sign in to comment.