chore(deps): update oxc apps (#176) #26
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - package.json | |
| permissions: {} | |
| jobs: | |
| check-version: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version_changed: ${{ steps.check.outputs.changed }} | |
| version: ${{ steps.check.outputs.version }} | |
| steps: | |
| - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | |
| - name: Check if version changed | |
| id: check | |
| uses: EndBug/version-check@5102328418c0130d66ca712d755c303e93368ce2 # v2.1.7 | |
| with: | |
| static-checking: localIsNew | |
| file-url: https://unpkg.com/oxc-walker@latest/package.json | |
| file-name: ./package.json | |
| release: | |
| needs: check-version | |
| if: needs.check-version.outputs.version_changed == 'true' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: oxc-project/setup-node@141eb77546de6702f92d320926403fe3f9f6a6f2 # v1.0.5 | |
| - run: npm install -g npm@latest # For trusted publishing support | |
| - name: Publish to npm | |
| run: pnpm publish --provenance --access public | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0 | |
| with: | |
| draft: false | |
| name: v${{ needs.check-version.outputs.version }} | |
| tag_name: v${{ needs.check-version.outputs.version }} | |
| target_commitish: ${{ github.sha }} | |
| generate_release_notes: true |