Skip to content

Commit

Permalink
build(actions): publish on npm with correct tag
Browse files Browse the repository at this point in the history
  • Loading branch information
thecreazy committed Jan 19, 2021
1 parent 2e29b5e commit 53ce15e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Create Github Release

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
- "v*"

jobs:
build:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Create Npm Release

on:
push:
tags:
- "v*"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Install dependencies with node
uses: actions/setup-node@v1
with:
node-version: 13.7
- run: yarn install
- run: yarn test
- run: yarn build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ github.ref }}
access: public

0 comments on commit 53ce15e

Please sign in to comment.