Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Commit

Permalink
chore(CI): use new GitHub Actions release workflow (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Aug 16, 2019
2 parents eac5af2 + 582412e commit 0016c0d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/main.workflow

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: npm publish
on: release
jobs:
publish-npm:
name: Build and Publish to npm
runs-on: ubuntu-latest
steps:
- name: Cancel if not a release publish # workaround has `on` doesn't have this filter
run: exit 1
if: github.event.action != 'published'
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm publish --dry-run # builds via prepublishOnly
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 comments on commit 0016c0d

Please sign in to comment.