Skip to content

Commit

Permalink
ci: enable nightly channel
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 27, 2024
1 parent 8924df7 commit bfd4f46
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- main
- v1

permissions:
id-token: write

jobs:
ci:
runs-on: ${{ matrix.os }}
Expand All @@ -22,21 +25,32 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- uses: oven-sh/setup-bun@v2
if: ${{ matrix.os != 'windows-latest' && matrix.node == 20 }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 20 }}
with:
bun-version: latest
- run: pnpm install
- run: pnpm lint
if: ${{ matrix.os != 'windows-latest' && matrix.node == 20 }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 20 }}
- run: pnpm build
- run: pnpm vitest run --coverage
- run: pnpm test:bun --coverage
if: ${{ matrix.os != 'windows-latest' && matrix.node == 20 }}
# - name: Coverage
# uses: codecov/codecov-action@v1
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 20 }}
- name: nightly release
if: |
github.event_name == 'push' &&
!contains(github.event.head_commit.message, '[skip-release]') &&
!startsWith(github.event.head_commit.message, 'docs')
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc &&
pnpm changelogen --canary nightly --publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

0 comments on commit bfd4f46

Please sign in to comment.