Merge pull request #1018 from typed-ember/release-preview #22
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
| # For every push to the primary branch with .release-plan.json modified, | |
| # runs release-plan. | |
| name: Publish Stable | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| paths: | |
| - '.release-plan.json' | |
| concurrency: | |
| group: publish-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish: | |
| name: "NPM Publish" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| attestations: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| # This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| # We have a top-level build, | |
| # and packages do not curerntly have the ability to | |
| # "prepack" | |
| - run: pnpm build | |
| - name: Publish to NPM | |
| run: NPM_CONFIG_PROVENANCE=true pnpm release-plan publish | |
| env: | |
| GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |