diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..fbf1ab4 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: 'Publish' + +on: + release: + types: [published] + +jobs: + release: + name: Publish + runs-on: ubuntu-latest + steps: + - name: 📚 checkout + uses: actions/checkout@v3 + - name: 🟢 node + uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://registry.npmjs.org + - name: Installing Dependencies + run: npm install + - name: Build + run: npm run build + - name: 🚀 publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}