Skip to content

Commit 08170d1

Browse files
committed
ci: improvements
1 parent 08825b1 commit 08170d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
permissions: { id-token: write, contents: read }
5050
needs: tests
51-
if: contains('refs/heads/v2', github.ref) && github.event_name == 'push'
51+
if: github.ref == 'refs/heads/v2' && github.event_name == 'push' && github.repository == 'nitrojs/nitro'
5252
steps:
5353
- uses: actions/checkout@v6
5454
with: { fetch-depth: 0 }
@@ -57,4 +57,4 @@ jobs:
5757
with: { node-version: lts/*, cache: "pnpm" }
5858
- run: pnpm install
5959
- run: pnpm changelogen --bump --canary nightly
60-
- run: npm i -g npm@latest && npm publish --tag latest
60+
- run: npm i -g npm@latest && npm publish --provenance --access public --tag latest

0 commit comments

Comments
 (0)