Toast styling (#35) #1
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 Workflow | |
| on: | |
| push: | |
| branches: [main] | |
| env: | |
| # TODO: replace organization or scope after the transfer | |
| PACKAGE_SCOPE: '@hoodieshq' | |
| CARGO_TERM_COLOR: always | |
| TURBO_TELEMETRY_DISABLED: 1 | |
| permissions: | |
| packages: write | |
| contents: read | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build.yml | |
| publish-gpr: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| contents: read | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Set up .npmrc for GitHub Packages | |
| run: | | |
| echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc | |
| echo "${PACKAGE_SCOPE}:registry=https://npm.pkg.github.com" >> ~/.npmrc | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PACKAGE_SCOPE: ${{ env.PACKAGE_SCOPE }} | |
| - name: Prepare for publishing | |
| run: | | |
| pnpm prepublish | |
| - name: Publish packages to GitHub Packages | |
| run: pnpm changeset publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |