Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
echo "project=$PROJECT" >> $GITHUB_OUTPUT
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "tag=$TAG" >> $GITHUB_OUTPUT
- run: (cd $PROJECT; npm publish)
- run: (cd $PROJECT; npm ci && npm run build --if-present && npm publish)
upload-asset:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand All @@ -59,8 +59,14 @@ jobs:
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- name: Install production deps
run: npm install --only=production
- name: Install deps
run: npm ci
working-directory: ${{ needs.deploy-npm-module.outputs.PROJECT }}
- name: Run build
run: npm run build --if-present
working-directory: ${{ needs.deploy-npm-module.outputs.PROJECT }}
- name: Remove dev deps
run: npm prune --omit=dev
working-directory: ${{ needs.deploy-npm-module.outputs.PROJECT }}
- name: Create package tarball
run: echo "tgz_name=$(npm pack)" >> $GITHUB_OUTPUT
Expand Down
Loading