Skip to content

Commit

Permalink
manage: Automatically modified publishPackage.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Jaid <jaid.jsx@gmail.com>
  • Loading branch information
Jaid committed Nov 29, 2019
1 parent 17bf18d commit 6db2203
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publishPackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Node package
on:
push:
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: actions/checkout
uses: actions/checkout@v1.2.0
- name: actions/setup-node
uses: actions/setup-node@v1.3.0
with:
node-version: "12.13.1"
- name: npm install
uses: jaid/action-npm-install@master
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Jest
uses: jaid/action-jest@master
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
uses: jaid/action-publish@master
with:
githubToken: ${{ secrets.packagesToken }}
npmPrepareScript: build:prod
publishDirectory: dist/package/production
npmToken: ${{ secrets.npmToken }}

0 comments on commit 6db2203

Please sign in to comment.