From 3723f020129f57a6fec46ed6d4104692f772a4a3 Mon Sep 17 00:00:00 2001 From: Vlad <3v1lh3x@gmail.com> Date: Sat, 4 Jul 2020 14:59:58 +0300 Subject: [PATCH] feat: setup release ci/cd --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..91a7f35 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +name: Node.js Package +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + registry-url: 'https://registry.npmjs.org' + - run: npm install + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}