Merge pull request #16 from ar-io/fix/testnet-bundler-url #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - alpha | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build.yml | |
| secrets: inherit | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| permissions: | |
| contents: write # publish a GitHub release and push the release commit | |
| issues: write # comment on released issues | |
| pull-requests: write # comment on released pull requests | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # A PAT (or GitHub App token) is required so the release commit/tag can | |
| # be pushed past the "changes must be made through a pull request" | |
| # branch ruleset. The token's actor must be in the ruleset bypass list. | |
| token: ${{ secrets.DEPLOY_PAT || github.token }} | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| registry-url: https://registry.npmjs.org | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build package | |
| run: pnpm build | |
| - name: Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.DEPLOY_PAT || github.token }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| HUSKY: '0' | |
| run: pnpm semantic-release |