fix: reject pull request publish contexts #14
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 | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Vite+ | |
| uses: voidzero-dev/setup-vp@v1 | |
| with: | |
| version: "0.1.19" | |
| node-version-file: ".node-version" | |
| cache: false | |
| run-install: | | |
| args: ['--frozen-lockfile'] | |
| - name: Run checks | |
| run: vp check | |
| - name: Run tests | |
| run: vp test | |
| - name: Build dist | |
| run: vp pack | |
| - name: Semantic release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: vp run release |