Skip to content

Commit

Permalink
Create publish.yml
Browse files Browse the repository at this point in the history
Auto Publish
  • Loading branch information
arkokoley authored Nov 19, 2019
1 parent 80d7964 commit 2cdb9b2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish

on:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Create .npmrc
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: npm publish --new-version ${GITHUB_REF#"refs/tags/"} --no-git-tag-version

0 comments on commit 2cdb9b2

Please sign in to comment.