Create Newstack App v0.0.26 #47
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 | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| publish-newstack: | |
| name: Publish newstack | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.event.release.tag_name, 'newstack-v') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build | |
| run: bun run build | |
| working-directory: packages/newstack | |
| - name: Publish | |
| run: npm publish --access public | |
| working-directory: packages/newstack | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| publish-create-newstack-app: | |
| name: Publish create-newstack-app | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.event.release.tag_name, 'create-newstack-app-v') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Publish | |
| run: npm publish --access public | |
| working-directory: packages/create-newstack-app | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |