Skip to content

Commit

Permalink
fix: tune to minimize release module (#2280)
Browse files Browse the repository at this point in the history
* ci publish.js.yml

* Update publish.js.yml

* Update publish.js.yml
  • Loading branch information
KazuCocoa authored Dec 2, 2023
1 parent fafcc94 commit c82bafc
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/publish.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@ jobs:
name: Install dependencies
- run: npm run test
name: Run NPM Test
- run: ls -all
- run: npm prune --omit=dev --omit=peer
- run: |
# GH env weirdly generates lock file, so here needs to remove the node_modules
# and lock file once before doing omit dev and peer env for the npm shrinkwrap
rm -rf node_modules
rm -rf package-lock.json
npm prune --omit=dev --omit=peer
name: Remove dev dependencies and appium peer dependencies
- run: ls -all
- run: npm shrinkwrap
name: Create shrinkwrap
- run: ls -all
- run: npm install --only=dev
name: Install dev dependencies for the release
# - run: npx semantic-release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# name: Release
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Release

0 comments on commit c82bafc

Please sign in to comment.