@himenon/[email protected] #67
Workflow file for this run
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: Release Workflow | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Git Config | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
git config --global user.email "[email protected]" | |
git config --global user.name "gh-actions" | |
- uses: actions/checkout@v3 | |
with: | |
ref: main | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.15.1 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "20.x" | |
registry-url: https://npm.pkg.github.com | |
scope: "@Himenon" | |
cache: "pnpm" | |
- run: pnpm i --frozen-lockfile | |
- run: | | |
pnpm build | |
env: | |
CI: true | |
release-github-registry: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Git Config | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
git config --global user.email "[email protected]" | |
git config --global user.name "gh-actions" | |
- uses: actions/checkout@v3 | |
with: | |
ref: main | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.15.1 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "20.x" | |
registry-url: https://npm.pkg.github.com | |
scope: "@Himenon" | |
cache: "pnpm" | |
- run: pnpm install | |
- run: | | |
pnpm build | |
pnpm release:github:registry | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CI: true | |
release-npm-registry: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: main | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.15.1 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "20.x" | |
registry-url: "https://registry.npmjs.org" | |
cache: "pnpm" | |
- run: pnpm install | |
- run: pnpm build | |
env: | |
CI: true | |
- run: pnpm release:npm:registry | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |