From 0bb5b657b1a763ad152f0163e5e5aa96d816b351 Mon Sep 17 00:00:00 2001 From: NeOMakinG Date: Tue, 30 Mar 2021 15:40:00 +0200 Subject: [PATCH] Add release CI --- .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 00000000..4894b35f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +name: NPM Release +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@v2 + with: + node-version: '12.x' + registry-url: 'https://registry.npmjs.org' + - run: npm install + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}