diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..bfdb2d9f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,29 @@ +name: Publish and release + +on: + push: + branches: [main] + +jobs: + publish: + runs-on: ubuntu-latest + strategy: + matrix: + node: ['16.x'] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + registry-url: https://registry.npmjs.org + - uses: bahmutov/npm-install@v1 + with: + useLockFile: false + - uses: changesets/action@master + with: + title: Release + publish: npm run release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}