diff --git a/.github/workflows/manual_publish.yml b/.github/workflows/manual_publish.yml new file mode 100644 index 0000000..3897a5d --- /dev/null +++ b/.github/workflows/manual_publish.yml @@ -0,0 +1,32 @@ +name: Manual npm publish + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 12 + - run: npm ci + - run: npm run-script lint + - run: npm run-script build + - run: npm run-script tests + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm run-script build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}