66 pull_request :
77 types : [opened, synchronize, reopened]
88
9+ # Supersede in-progress runs for the same ref, but never cancel release
10+ # runs on main/next - only collapse redundant PR runs.
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
14+
915# Enabled permissions on GITHUB_TOKEN
1016permissions :
1117 # To be able to push to the repo
@@ -18,6 +24,8 @@ permissions:
1824 checks : write
1925 # To post comments on PRs
2026 issues : write
27+ # OIDC token for npm Trusted Publishing (token-less publish + provenance)
28+ id-token : write
2129
2230env :
2331 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
@@ -30,46 +38,47 @@ jobs:
3038 install :
3139 runs-on : ubuntu-latest
3240 steps :
33- - uses : actions/checkout@v4
41+ - uses : actions/checkout@v6
3442 - uses : ./.github/actions/setup
3543
3644 build :
3745 runs-on : ubuntu-latest
3846 needs : install
3947 steps :
40- - uses : actions/checkout@v4
41- - name : Prepare repository
42- run : git fetch --unshallow --tags
48+ - uses : actions/checkout@v6
49+ with :
50+ # full history + tags for auto's versioning
51+ fetch-depth : 0
4352 - uses : ./.github/actions/setup
4453 - uses : ./.github/actions/build-cache
45- - run : yarn build
46- # - run: yarn build && yarn lerna run bundle --scope=auto
54+ - run : pnpm build
4755
4856 # pr-check:
4957 # runs-on: ubuntu-latest
5058 # needs: build
5159 # if: ${{ env.GITHUB_TOKEN != '' }}
5260 # steps:
53- # - uses: actions/checkout@v4
61+ # - uses: actions/checkout@v6
5462 # - uses: ./.github/actions/setup
5563 # - uses: ./.github/actions/build-cache
56- # - uses: 8BitJonny/gh-get-current-pr@3 .0.0
64+ # - uses: 8BitJonny/gh-get-current-pr@4 .0.0
5765 # id: PR
58- # - run: yarn auto pr-check --pr $PR --url "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
66+ # - run: pnpm auto pr-check --pr $PR --url "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
5967 # env:
6068 # PR: ${{ steps.PR.outputs.number }}
6169
6270 test :
6371 runs-on : ubuntu-latest
6472 needs : build
6573 steps :
66- - uses : actions/checkout@v4
74+ - uses : actions/checkout@v6
75+ with :
76+ # full history + tags for auto's versioning
77+ fetch-depth : 0
6778 - uses : ./.github/actions/setup
6879 - uses : ./.github/actions/build-cache
69- - name : Prepare repository
70- run : git fetch --unshallow --tags
71- - run : yarn test
72- # - run: yarn test:coverage
80+ - run : pnpm test
81+ # - run: pnpm test:coverage
7382 # env:
7483 # GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
7584 # - name: Send CodeCov Results
@@ -81,16 +90,17 @@ jobs:
8190 # if: ${{ env.GITHUB_TOKEN != '' && !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') }}
8291 if : " !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
8392 steps :
84- - uses : actions/checkout@v4
85- # - uses: 8BitJonny/gh-get-current-pr@3.0.0
93+ - uses : actions/checkout@v6
94+ with :
95+ # full history + tags for auto's versioning
96+ fetch-depth : 0
97+ # - uses: 8BitJonny/gh-get-current-pr@4.0.0
8698 # id: PR
8799 # with:
88100 # filterOutClosed: true
89101 # sha: ${{ github.event.pull_request.head.sha }}
90102 - uses : ./.github/actions/setup
91103 - uses : ./.github/actions/build-cache
92- - name : Prepare repository
93- run : git fetch --unshallow --tags
94104 - name : Create Release
95- run : yarn auto shipit -vv
105+ run : pnpm auto shipit
96106 if : ${{ env.GITHUB_TOKEN != '' }}
0 commit comments