Skip to content

feat: update with pnpm actions #36

feat: update with pnpm actions

feat: update with pnpm actions #36

Workflow file for this run

name: Release
on:
push:
branches:
- dev
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: github actions
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- name: Setup Environment
shell: bash
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
mkdir -p ~/.ssh
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
- name: Install and Build
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Publish
run: node scripts/publish.js