From f88705ef2e705236a8570b7389bcf2e51ca11d03 Mon Sep 17 00:00:00 2001 From: Tiross Date: Mon, 20 Dec 2021 01:19:27 +0100 Subject: [PATCH] Add a publish action --- .github/workflows/build.yml | 2 +- .github/workflows/publish.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f41dced..7d9ec22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,5 @@ -name: linux +name: build on: push: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a2df71d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +on: push + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16.x + cache: 'npm' + - run: npm ci + - run: npm run test + - name: publish on npm + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }}