publish.yml 673 B

1234567891011121314151617181920212223242526272829
  1. name: "Publish"
  2. on:
  3. release:
  4. types: [created]
  5. concurrency: ${{ github.workflow }}-${{ github.ref }}
  6. jobs:
  7. lint:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. matrix:
  11. node-version: [18.x]
  12. steps:
  13. - uses: actions/checkout@v3
  14. - uses: actions/setup-node@v3
  15. with:
  16. node-version: ${{ matrix.node-version }}
  17. - name: Install dependencies
  18. run: npm ci
  19. - name: Create Release PR using Changesets
  20. uses: changesets/action@v1
  21. id: changesets
  22. with:
  23. publish: npm run build
  24. env:
  25. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  26. NPM_TOKEN: ${{ secrets.NPM_TOKEN }}