13 uses: actions/checkout@v4
16 uses: pnpm/action-setup@v2
21 uses: actions/setup-node@v4
26 - name: Install Dependencies
27 run: pnpm install --ignore-scripts --frozen-lockfile
29 - name: Tests & Coverage
37 - name: Production Build
42 runs-on: ubuntu-latest
46 uses: actions/checkout@v4
49 uses: pnpm/action-setup@v2
54 uses: actions/setup-node@v4
57 registry-url: https://registry.npmjs.org/
60 - name: Install Dependencies
61 run: pnpm install --ignore-scripts --frozen-lockfile
63 - name: Read package.json version
65 uses: jaywcjlove/github-action-package@main
67 - name: Publish Release
68 if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
69 run: pnpm publish --no-git-checks
71 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
73 - name: Publish Pre-Release
74 if: ${{ contains(steps.package-version.outputs.version, '-') == true && contains(steps.package-version.outputs.version, '-beta') == false }}
75 run: pnpm publish --no-git-checks --tag next
77 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
79 - name: Publish Beta Release
80 if: ${{ contains(steps.package-version.outputs.version, '-beta') == true }}
81 run: pnpm publish --no-git-checks --tag beta
83 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
87 # runs-on: ubuntu-latest
94 # uses: actions/checkout@v4
97 # uses: pnpm/action-setup@v2
101 # - name: Setup Node.js
102 # uses: actions/setup-node@v4
104 # node-version: '20.x'
105 # registry-url: https://npm.pkg.github.com
108 # - name: Install Dependencies
109 # run: pnpm install --ignore-scripts --frozen-lockfile
111 # - name: Read package.json version
112 # id: package-version
113 # uses: jaywcjlove/github-action-package@main
115 # - name: Publish Release
116 # if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
117 # run: pnpm publish --no-git-checks
119 # NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
121 # - name: Publish Pre-Release
122 # if: ${{ contains(steps.package-version.outputs.version, '-') == true && contains(steps.package-version.outputs.version, '-beta') == false }}
123 # run: pnpm publish --no-git-checks --tag next
125 # NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
127 # - name: Publish Beta Release
128 # if: ${{ contains(steps.package-version.outputs.version, '-beta') == true }}
129 # run: pnpm publish --no-git-checks --tag beta
131 # NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}