chore(helm): adjust logic of check chart exists #118
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snapshot Release | |
on: | |
push: | |
branches: | |
- snapshot | |
- snapshots/** | |
pull_request: | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'snapshot') }} | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/install-deps | |
- uses: ./.github/actions/build-packages | |
- name: Bump package version | |
run: pnpm changeset version --snapshot | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish snapshot packages | |
run: pnpm publish -r --tag snapshot --no-git-checks | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |