Add optional dependencies #473
Workflow file for this run
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
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
USE_SSH: true | |
GIT_USER: petyosi | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
steps: | |
- name: Begin CI... | |
uses: actions/checkout@v4 | |
- name: Use Node 22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Install dependencies | |
run: | | |
npm install | |
npm install --workspaces | |
- name: run CI checks | |
run: | | |
npm run ci | |
- name: Release | |
if: github.ref == 'refs/heads/master' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
npm run release |