From d6f0e31fa44684b42e95b072901e66cea7d0428a Mon Sep 17 00:00:00 2001 From: H Date: Tue, 17 May 2022 11:18:06 +0800 Subject: [PATCH] npm publish actions --- .github/workflows/npm-publish.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..2151913 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,20 @@ +name: npm-publish +on: + workflow_dispatch: +jobs: + npm-publish: + name: npm-publish + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@main + - name: Set up Node.js + uses: actions/setup-node@main + with: + node-version: 16 + registry-url: https://registry.npmjs.org + - name: Publish + run: | + npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}