|
8 | 8 | branches: |
9 | 9 | - main |
10 | 10 |
|
| 11 | +permissions: |
| 12 | + id-token: write # allows ODIC publishing |
| 13 | + contents: read |
| 14 | + |
11 | 15 | jobs: |
12 | 16 | release-snapshot: |
| 17 | + runs-on: ubuntu-24.04 |
13 | 18 | if: github.event_name == 'pull_request' |
14 | | - uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main |
15 | 19 | # permissions: |
16 | 20 | # id-token: write # allows ODIC publishing |
17 | | - with: |
18 | | - npmTag: alpha |
19 | | - buildScript: build |
20 | | - nodeVersion: 24 |
21 | | - secrets: |
22 | | - githubToken: ${{ secrets.GITHUB_TOKEN }} |
23 | | - npmToken: ${{ secrets.NPM_TOKEN }} |
| 21 | + # contents: read |
| 22 | + steps: |
| 23 | + - name: Check out repository |
| 24 | + uses: actions/checkout@v4 |
| 25 | + |
| 26 | + - name: Set up Node.js |
| 27 | + uses: actions/setup-node@v4 |
| 28 | + with: |
| 29 | + node-version: 24 |
| 30 | + registry-url: 'https://registry.npmjs.org' |
| 31 | + cache: yarn |
| 32 | + cache-dependency-path: '**/yarn.lock' |
| 33 | + |
| 34 | + - run: yarn install --prefer-offline |
| 35 | + |
| 36 | + - name: Deploy snapshot |
| 37 | + run: | |
| 38 | + yarn changeset version --snapshot $RELEASE_TAG |
| 39 | + yarn build |
| 40 | + yarn changeset publish --tag alpha --no-git-tag |
| 41 | + env: |
| 42 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 43 | + RELEASE_TAG: test-run${{ github.run_number }}-${{ github.run_attempt }} |
| 44 | + |
| 45 | + # - name: Release Snapshot |
| 46 | + # uses: 'the-guild-org/[email protected]' |
| 47 | + # with: |
| 48 | + # tag: alpha |
| 49 | + # prepareScript: 'yarn build' |
| 50 | + # env: |
| 51 | + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub Token |
| 52 | + # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # NPM Token |
| 53 | + |
| 54 | + # uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main |
| 55 | + # permissions: |
| 56 | + # id-token: write # allows ODIC publishing |
| 57 | + # with: |
| 58 | + # npmTag: alpha |
| 59 | + # buildScript: build |
| 60 | + # nodeVersion: 24 |
| 61 | + # secrets: |
| 62 | + # githubToken: ${{ secrets.GITHUB_TOKEN }} |
| 63 | + # npmToken: ${{ secrets.NPM_TOKEN }} # FIXME: eddeee888 Required because the workflows requires it |
24 | 64 |
|
25 | 65 | release-stable: |
26 | 66 | if: github.event_name == 'push' |
|
0 commit comments