Skip to content

Workflow file for this run

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/action-setup@v4
with:
version: 9.10.0
- uses: actions/setup-node@v4
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/action-setup@v4
with:
version: 9.10.0
- uses: actions/setup-node@v4
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/action-setup@v4
with:
version: 9.10.0
- uses: actions/setup-node@v4
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 }}