Skip to content

Commit

Permalink
Merge pull request #25 from github/publish-action
Browse files Browse the repository at this point in the history
Add publish action
  • Loading branch information
dgreif authored Aug 25, 2022
2 parents 54a518a + a0f9abf commit 7d751a8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 87 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
- run: npm test
- run: npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{ github.event.release.tag_name }}
- run: npm whoami; npm --ignore-scripts publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
87 changes: 0 additions & 87 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 7d751a8

Please sign in to comment.