Skip to content

Commit

Permalink
ci: add env variables for release
Browse files Browse the repository at this point in the history
  • Loading branch information
janbiasi committed Nov 22, 2023
1 parent 98af0a4 commit b482ab4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- main

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -36,6 +39,11 @@ jobs:
name: Publish
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- if: contains('refs/heads/main OR refs/heads/next', github.ref)
run: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit b482ab4

Please sign in to comment.