diff --git a/.github/publish_artifacts.yaml b/.github/publish_artifacts.yaml index e69de29..ff4bcb9 100644 --- a/.github/publish_artifacts.yaml +++ b/.github/publish_artifacts.yaml @@ -0,0 +1,18 @@ +name: publish artifacts +on: [workflow_dispatch] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 16 + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm lint + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}