Skip to content

ci: remove --frozen-lockfile for cross-platform compatibility #149

ci: remove --frozen-lockfile for cross-platform compatibility

ci: remove --frozen-lockfile for cross-platform compatibility #149

Workflow file for this run

name: Release dwkim
on:
push:
branches: [main]
paths:
- 'packages/dwkim/**'
- '.github/workflows/publish.yml'
concurrency:
group: release-dwkim
cancel-in-progress: true
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
- name: Upgrade npm for OIDC support
run: npm install -g npm@latest
- name: Install dependencies
run: bun install
- name: Build dwkim
run: bun run build:dwkim
- name: Clean and prepare for npm publish
run: |
rm -rf node_modules
rm -rf packages/*/node_modules
# Remove workspaces from root package.json to prevent npm workspace resolution
jq 'del(.workspaces)' package.json > package.json.tmp && mv package.json.tmp package.json
# Create .npmrc with auth token
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > packages/dwkim/.npmrc
cd packages/dwkim && npm install --ignore-scripts
- name: Release
working-directory: packages/dwkim
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true