Skip to content

Commit

Permalink
ci: release edge versions of labelled prs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 16, 2023
1 parent 433b529 commit cdc42d0
Showing 1 changed file with 40 additions and 7 deletions.
47 changes: 40 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -202,13 +202,46 @@ jobs:
- lint
- build
- test-fixtures
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
timeout-minutes: 20

strategy:
matrix:
os: [ubuntu-latest]
node: [20]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Restore dist cache
uses: actions/download-artifact@v3
with:
name: dist
path: packages

- name: Release Edge
run: ./scripts/release-edge.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NPM_CONFIG_PROVENANCE: true

release-pr:
permissions:
id-token: write
pull-requests: write
if: |
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, '🧷 edge release')
needs:
- lint
- build
- test-fixtures
runs-on: ubuntu-latest
timeout-minutes: 20

steps:
Expand All @@ -218,7 +251,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
node-version: 20
cache: "pnpm"

- name: Install dependencies
Expand All @@ -231,7 +264,7 @@ jobs:
path: packages

- name: Release Edge
run: ./scripts/release-edge.sh
run: ./scripts/release-edge.sh pr-${{ github.event.issue.number }}
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NPM_CONFIG_PROVENANCE: true

0 comments on commit cdc42d0

Please sign in to comment.