fix: set publishing branch for testing purposes #2
Workflow file for this run
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: Publish to npm | |
| on: | |
| push: | |
| branches: | |
| - publish-to-npm | |
| jobs: | |
| publish: | |
| name: Publish Packages to npm | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: pnpm/action-setup@v4.0.0 | |
| with: | |
| version: 6.32.2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build packages | |
| run: pnpm run build --filter=./packages | |
| - name: Create .npmrc for npm Registry | |
| run: | | |
| echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
| echo "registry=https://registry.npmjs.org/" >> ~/.npmrc | |
| - name: Allow Publishing from publish-to-npm Branch | |
| run: pnpm config set publish-branch publish-to-npm | |
| - name: Publish to npm Registry | |
| run: | | |
| pnpm publish --filter ./packages/framework | |
| pnpm publish --filter ./packages/runtime |