diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..2e13006 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,21 @@ +# notes +name: "publish npm" + +on: push + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: node + uses: actions/setup-node@v2 + with: + node-version: 12 + registry-url: https://registry.npmjs.org + - name: publish + run: npm publish --access public + working-directory: + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}