feat(help): Skip version checks if it will cause permission prompts #228
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: Publish | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
release: | |
types: [published] | |
env: | |
DENO_UNSTABLE_WORKSPACES: true | |
DENO_FUTURE: 1 | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Deno | |
uses: denoland/setup-deno@v2 | |
- name: Publish (dry run) | |
if: github.event_name != 'release' | |
run: deno publish --dry-run | |
- name: Publish | |
if: github.event_name == 'release' | |
run: deno publish |