From a76459df81f4b63531e2e14dd9d5ba9f0ee242d0 Mon Sep 17 00:00:00 2001 From: sarahrainbow Date: Thu, 8 Jul 2021 13:31:42 +0100 Subject: [PATCH] update main.yml --- .github/workflows/main.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a8878a7..0bc7e52 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,11 +2,8 @@ name: Node.js Package on: - # release: - # types: [created] - push: - branches: - - github-actions-test + release: + types: [created] jobs: build: runs-on: ubuntu-latest @@ -18,6 +15,6 @@ jobs: node-version: '12.18.4' registry-url: 'https://registry.npmjs.org' - run: npm install - - run: npm run publish-dry + - run: npm run publish-public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}