fix(lynxtron-go): repair packaged resources and icon fonts (#61) #60
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 | |
| # npm publish pipeline driven by Changesets. | |
| # | |
| # - Opens/updates the "Version Packages" PR when changesets are pending. | |
| # - Once that PR is merged, publishes updated packages to npm. | |
| # | |
| # Native installers (dmg/exe) and showcase tarballs are handled by the | |
| # separate `release-installers.yml` workflow, which is triggered manually | |
| # so that a fresh set of installer/asset builds can be attached to a | |
| # Release (created on demand) without depending on npm publish state. | |
| # | |
| # Note: this pipeline runs `changeset publish --no-git-tag` and passes | |
| # `createGithubReleases: false` to changesets/action, so no git tags or | |
| # GitHub Releases are produced here. Installer Releases are created by | |
| # `release-installers.yml` on demand. | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: macos-latest | |
| environment: npm | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| # Full history so Changesets can generate changelogs. | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: https://registry.npmjs.org | |
| - name: Install Dependencies | |
| run: | | |
| # OIDC trusted publishing requires npm >=11.5.1; Node 22 ships with | |
| # npm 10.x. Pin to 11.x because npm 12 turned unknown CLI flags into | |
| # errors, which trips `pnpm publish` forwarding `--no-git-checks` to | |
| # `npm publish`. | |
| npm i -g npm@11 | |
| npm i -g corepack@latest --force | |
| corepack enable | |
| pnpm install | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| publish: pnpm run release | |
| createGithubReleases: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: true |