proposal: add instruction loader and schema restructure (Slice 3) (#410) #172
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 (prepare) | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write # Required for npm OIDC trusted publishing | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| prepare: | |
| if: github.repository == 'Fission-AI/OpenSpec' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' # Node 24 includes npm 11.5.1+ required for OIDC | |
| cache: 'pnpm' | |
| registry-url: 'https://registry.npmjs.org' | |
| - run: pnpm install --frozen-lockfile | |
| # Opens/updates the Version Packages PR; publishes when the Version PR merges | |
| - name: Create/Update Version PR | |
| uses: changesets/action@v1 | |
| with: | |
| title: 'chore(release): version packages' | |
| createGithubReleases: true | |
| # Use CI-specific release script: relies on version PR having been merged | |
| # so package.json already contains the bumped version. | |
| publish: pnpm run release:ci | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # npm authentication handled via OIDC trusted publishing (no token needed) |