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

Commit

Permalink
move publish job to build step
Browse files Browse the repository at this point in the history
  • Loading branch information
yunair committed Jun 17, 2020
1 parent 0994f1d commit bedfe4a
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: publish CI

on:
push:
Expand All @@ -18,18 +15,11 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build --if-present

publish-npm:
needs: build
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm publish
- run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}


0 comments on commit bedfe4a

Please sign in to comment.