doc: wording polish #48
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
# .github/workflows/publish.yml | |
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write # The OIDC ID token is used for authentication with JSR. | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check if jsr.json has changed | |
id: jsr_changed | |
run: | | |
if git diff --name-only HEAD^ HEAD | grep -q 'jsr.json'; then | |
echo "jsr_json_changed=true" >> $GITHUB_OUTPUT | |
else | |
echo "jsr_json_changed=false" >> $GITHUB_OUTPUT | |
fi | |
- name: Publish to JSR | |
if: steps.jsr_changed.outputs.jsr_json_changed == 'true' | |
run: | | |
npx jsr publish --allow-dirty |