|
23 | 23 | version: latest |
24 | 24 | - name: Run Biome |
25 | 25 | run: biome ci . |
26 | | - validate: |
| 26 | + release: |
27 | 27 | needs: [quality] |
28 | 28 | runs-on: ubuntu-latest |
| 29 | + permissions: |
| 30 | + contents: write # to be able to publish a GitHub release |
| 31 | + issues: write # to be able to comment on released issues |
| 32 | + pull-requests: write # to be able to comment on released pull requests |
| 33 | + id-token: write # to enable use of OIDC for npm provenance |
29 | 34 | steps: |
30 | 35 | - name: Check out code |
31 | 36 | uses: actions/checkout@v4 |
|
36 | 41 | with: |
37 | 42 | bun-version: latest |
38 | 43 | - name: Install dependencies (`npm ci`) |
39 | | - # Different set of dependencies due to subset of packages causes lockfile changes that cause failure, so we don't copy lockfile over |
| 44 | + # Different set of dependencies due to subset of packages causes lockfile changes that cause failure so no --frozen-lockfile |
40 | 45 | # https://github.com/oven-sh/bun/issues/5792#issuecomment-2325444077 |
41 | 46 | run: bun install |
42 | 47 | - name: Test |
|
46 | 51 | run: bun --filter react-router-busy build |
47 | 52 | - name: Check exports |
48 | 53 | run: bun --filter react-router-busy check-exports |
49 | | - release: |
50 | | - needs: [validate] |
51 | | - runs-on: ubuntu-latest |
52 | | - permissions: |
53 | | - contents: write # to be able to publish a GitHub release |
54 | | - issues: write # to be able to comment on released issues |
55 | | - pull-requests: write # to be able to comment on released pull requests |
56 | | - id-token: write # to enable use of OIDC for npm provenance |
57 | | - steps: |
58 | | - - name: Check out code |
59 | | - uses: actions/checkout@v4 |
60 | | - with: |
61 | | - fetch-depth: 0 |
62 | | - - name: Set up Bun |
63 | | - |
64 | | - with: |
65 | | - bun-version: latest |
66 | | - scope: "react-router-busy" |
67 | | - - name: Install dependencies (`npm ci`) |
68 | | - # Different set of dependencies due to subset of packages causes lockfile changes that cause failure, so we don't copy lockfile over |
69 | | - run: bun install |
70 | 54 | # Note we have to toggle Workflow permissions > Allow GitHub Actions to create and approve pull requests in https://github.com/bitofbreeze/mono/settings/actions |
71 | 55 | # Even with permissions above https://github.com/orgs/community/discussions/27689#discussioncomment-5707424 |
72 | 56 | # Could avoid this with personal access token https://microsoft.github.io/beachball/concepts/ci-integration.html#authentication |
|
0 commit comments