fix(deps): update dependency nodemon to v3.1.1 #9909
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: Node.js CI | |
on: | |
push: | |
branches: [ develop, main ] | |
pull_request: | |
jobs: | |
nodejs-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- run: yarn set version berry | |
- run: yarn install --immutable | |
- run: yarn run build | |
# run sqlite tests with coverage | |
- run: yarn run test:cov-sqlite | |
env: | |
NODE_OPTIONS: '--max_old_space_size=8192' | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
flags: server-nodejs | |
token: ${{ secrets.CODECOV_TOKEN }} | |
dry_run: false | |
# https://stackoverflow.com/questions/57968497/how-do-i-set-an-env-var-with-a-bash-expression-in-github-actions | |
- name: get-server-version | |
# https://gist.github.com/DarrenN/8c6a5b969481725a4413?permalink_comment_id=3863317#gistcomment-3863317 | |
run: | | |
echo "SERVER_VERSION=$(npm pkg get version | sed 's/"//g')" >> $GITHUB_ENV | |
- name: set-tag | |
run: | | |
if [ "${{ github.ref_name }}" = "main" ]; then | |
RELEASE_TAG="${{ env.SERVER_VERSION }}" | |
else | |
RELEASE_TAG="${{ env.SERVER_VERSION }}-${{ github.run_number }}" | |
fi | |
echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV | |
- name: print-tag | |
run: | | |
echo ${{ env.RELEASE_TAG }} | |
# Purely a dry-run! | |
- uses: JS-DevTools/npm-publish@v3 | |
with: | |
dry-run: true | |
token: ${{ secrets.NPM_TOKEN }} | |
package: package.json |