Skip to content

Commit

Permalink
ci: add cd action to publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Nov 18, 2020
1 parent a657e75 commit eb90059
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CD

on:
release:
# This specifies that the build will be triggered when we publish a release
types: [published]

jobs:
build:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit eb90059

Please sign in to comment.