From 23f38db5912757ad584497d2a848911fc0d1ebe1 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Fri, 16 Jul 2021 00:07:41 +0200 Subject: [PATCH] ci: add publish action --- .github/workflows/PUBLISH.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/PUBLISH.yml diff --git a/.github/workflows/PUBLISH.yml b/.github/workflows/PUBLISH.yml new file mode 100644 index 0000000..2448fd8 --- /dev/null +++ b/.github/workflows/PUBLISH.yml @@ -0,0 +1,20 @@ +name: PUBLISH +on: + push: + tags: + - 'v*' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14 + - name: Publish + run: | + npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} + npm publish --ignore-scripts + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file