chore(deps): update dependency @types/node to v20.17.9 #2201
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: Publish to Github Pages | |
on: | |
push: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci --no-audit | |
- name: Compile TypeScript | |
run: npx tsc | |
- name: Generate assets | |
run: | | |
mkdir assets | |
node dist/generate-assets.js | |
- name: Run Unit Tests | |
run: npm test | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: nrfprogrammer-firmware-images-${{ github.sha }} | |
path: assets | |
- name: Publish to GitHub pages | |
if: github.ref == 'refs/heads/saga' | |
run: | | |
echo "machine github.com login accesskey password ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
cd assets | |
git init | |
git add -A | |
git commit -m "update assets" | |
git remote add origin https://github.com/${GITHUB_REPOSITORY}.git | |
git push -f origin HEAD:gh-pages |