not saving linux dep rollup in workflow #6
This file contains hidden or 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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout repository | |
- uses: actions/checkout@v3 | |
# Set up Node.js and cache dependencies | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
# Install all dependencies including devDependencies | |
- run: npm ci --legacy-peer-deps | |
name: Install dependencies | |
# Install Rollup Linux dependencies (without saving to package.json) | |
- run: npm install --no-save @rollup/rollup-linux-x64-gnu --legacy-peer-deps | |
name: Install Rollup Linux dependencies | |
# Build the project | |
- run: npm run build | |
name: Build project | |
# Publish to npm | |
- run: npm publish --access public | |
name: Publish package | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_AUTH_TOKEN }} |