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

Commit

Permalink
add test to step
Browse files Browse the repository at this point in the history
  • Loading branch information
yunair committed Jun 17, 2020
1 parent bedfe4a commit 570cf21
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: publish CI
name: Publish NPM Package

on:
push:
tags:
- '**'
release:
types: [published]


jobs:
build:
runs-on: windows-latest
publish-npm:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
Expand All @@ -18,8 +17,9 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build --if-present
- run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- run: npm run test
- run: npm publish --tag beta --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}


0 comments on commit 570cf21

Please sign in to comment.