chore(deps-dev): bump type-fest from 4.6.0 to 4.7.1 #821
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Release | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3 | |
with: | |
node-version: 18.x | |
- run: npm ci | |
name: Install dependencies | |
- run: npm run build | |
name: Run build | |
- run: npm run test | |
name: Run test | |
- run: | | |
# Remove dev and peer dependencies from node_modules | |
npm prune --omit=dev --omit=peer | |
# Generate shrinkwrap from the content of node_modules | |
mv package-lock.json package-lock.json.bak | |
npm shrinkwrap | |
mv package-lock.json.bak package-lock.json | |
# Restore dev dependencies for the release | |
mv npm-shrinkwrap.json npm-shrinkwrap.json.bak | |
npm ci --only=dev | |
mv npm-shrinkwrap.json.bak npm-shrinkwrap.json | |
# Remove unnecessary package-lock.json | |
rm -f package-lock.json | |
name: Generate shrinkwrap without including dev/peer dependencies | |
- run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
name: Release |