chore: Fix workflow #2
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: Deployment | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pages: write | |
| packages: write | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node | |
| id: setup-node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: "https://registry.npmjs.org/" | |
| scope: "@openinc" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build the project | |
| run: pnpm run build | |
| - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | |
| run: pnpm audit signatures | |
| - name: Semantic Release 🚀 | |
| id: semantic | |
| run: npx semantic-release --branches master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.OPENINC_SEMANTIC_RELEASE }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN_ORG_OPENINC }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ORG_OPENINC }} | |
| outputs: | |
| new-release-published: ${{ steps.semantic.outputs.new-release-published }} | |
| new-release-version: ${{ steps.semantic.outputs.new-release-version }} | |
| new-release-git-tag: ${{ steps.semantic.outputs.new-release-git-tag }} |