From e7a6e873ff530c200450245de392bfa73fa77154 Mon Sep 17 00:00:00 2001 From: Johan Nyman Date: Fri, 16 Apr 2021 07:56:08 +0200 Subject: [PATCH] chore: Simplify release script --- .github/workflows/release.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eff391b..be3ec8b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,30 +101,17 @@ jobs: uses: actions/setup-node@v1 with: node-version: 12.x - - name: Check if release is desired - # TODO - or if something changed? perhaps always on the releaseX branches? - id: do-publish - run: | - if [ -z "${{ secrets.NPM_TOKEN }}" ]; then - echo "env NPM_TOKEN not set!" - else - echo "Publish release" - echo ::set-output name=publish::"1" - fi - name: Prepare Environment - if: ${{ steps.do-publish.outputs.publish }} run: | npm install env: CI: true - name: Build - if: ${{ steps.do-publish.outputs.publish }} run: | npm run build env: CI: true - name: Publish to NPM - if: ${{ steps.do-publish.outputs.publish }} run: | echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc npm publish --access=public --tag latest