chore(deps): lock file maintenance #3910
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: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Test on node ${{ matrix.node_version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [18, 20, 21] | |
steps: | |
- uses: actions/checkout@master | |
- name: Use Node.js ${{ matrix.node_version }} | |
uses: actions/setup-node@master | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Install | |
run: yarn --ignore-engines | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test | |
- name: Publish Canary | |
env: # Or as an environment variable | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
run: | | |
echo "Fork PR: ${{github.repository}}" | |
if [ "${{github.repository}}" == "Urigo/SOFA" ] && [ "${{ secrets.NODE_AUTH_TOKEN }}" != "" ] | |
then | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NODE_AUTH_TOKEN }}" > .npmrc | |
npm run release | |
else | |
echo "Skipping canary publish due to a fork/PR..." | |
fi |