Publish Template Generator #3
This file contains 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 Template Generator | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
# This is needed to be able to properly publish to npm | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
registry-url: https://registry.npmjs.org | |
- name: Install Dependencies | |
run: bun i --frozen-lockfile | |
- name: Build | |
run: bun run build:create | |
- name: Publish create | |
# Bun doesnt have any publish methods yet | |
run: cd packages/create && npm publish --provenance --no-git-checks --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM}} |