From ce1e7a84b08f3e5ca45efd3e11ccbbd1df2c4137 Mon Sep 17 00:00:00 2001 From: Muryor <65432884+Muryor@users.noreply.github.com> Date: Fri, 25 Mar 2022 21:07:20 +0800 Subject: [PATCH] Create autopublish.yml --- .github/workflows/autopublish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/autopublish.yml diff --git a/.github/workflows/autopublish.yml b/.github/workflows/autopublish.yml new file mode 100644 index 0000000..3630aa8 --- /dev/null +++ b/.github/workflows/autopublish.yml @@ -0,0 +1,19 @@ +name: Node.js Package + +on: + push: + branches: + - main + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + registry-url: https://registry.npmjs.org/ + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}