npm-publish.yml 945 B

123456789101112131415161718192021222324252627282930313233343536
  1. # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
  2. # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
  3. # name: gpt-cli release
  4. # on:
  5. # push:
  6. # branches: [main]
  7. # jobs:
  8. # release:
  9. # name: Release
  10. # runs-on: ubuntu-latest
  11. # timeout-minutes: 10
  12. # permissions:
  13. # contents: write
  14. # steps:
  15. # - name: Checkout
  16. # uses: actions/checkout@v3
  17. # - name: Setup Node.js
  18. # uses: actions/setup-node@v3
  19. # with:
  20. # node-version-file: '.nvmrc'
  21. # - name: Setup pnpm
  22. # uses: pnpm/action-setup@v2
  23. # with:
  24. # version: 7
  25. # run_install: true
  26. # - name: Release
  27. # env:
  28. # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  29. # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
  30. # run: pnpm dlx semantic-release