From 6db22035eb8d2e9926cad5d95e38cc8cd6caf4b8 Mon Sep 17 00:00:00 2001 From: Jaid Date: Fri, 29 Nov 2019 08:40:21 +0100 Subject: [PATCH] manage: Automatically modified publishPackage.yml Signed-off-by: Jaid --- .github/workflows/publishPackage.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/publishPackage.yml diff --git a/.github/workflows/publishPackage.yml b/.github/workflows/publishPackage.yml new file mode 100644 index 0000000..6ac1105 --- /dev/null +++ b/.github/workflows/publishPackage.yml @@ -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 }} \ No newline at end of file