Skip to content

Commit

Permalink
ci: setup nightly release
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 5, 2024
1 parent f27c389 commit 258fd4a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

permissions:
id-token: write

jobs:
ci:
runs-on: ubuntu-latest
Expand All @@ -24,3 +27,13 @@ jobs:
- run: pnpm build
- run: pnpm vitest --coverage
- uses: codecov/codecov-action@v4
- name: nightly release
if: |
github.event_name == 'push' &&
!startsWith(github.event.head_commit.message, 'docs')
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc &&
pnpm changelogen --canary nightly --publish --publishTag 2x
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

0 comments on commit 258fd4a

Please sign in to comment.