chore(deps-dev): Bump @types/node from 22.9.0 to 22.9.3 #15
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: | |
branches: | |
- main | |
tags: | |
- v*.*.* | |
pull_request: | |
branches: | |
- main | |
jobs: | |
job_lint_test_build: | |
name: Lint, Test and Build | |
uses: './.github/workflows/lint-test-build.yml' | |
job_upload_coverage: | |
name: Upload Coverage Report to Codecov | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.ref_type == 'branch' | |
needs: job_lint_test_build | |
steps: | |
- name: Checkout, Setup Node.js v${{ env.NODE_VERSION }} and Install dependencies | |
uses: manferlo81/action-checkout-node-install@v0 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
env: | |
NODE_VERSION: 20.x | |
- name: Collect Coverage | |
run: npm test | |
env: | |
COVERAGE: CI | |
- name: Upload Coverage Report | |
id: upload-coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
directory: coverage | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Show Coverage Report URL | |
run: | | |
echo "### Coverage Report Uploaded!" >> $GITHUB_STEP_SUMMARY | |
echo "" >> $GITHUB_STEP_SUMMARY | |
echo "${{ env.REPORT_URL }}" >> $GITHUB_STEP_SUMMARY | |
env: | |
REPORT_URL: https://app.codecov.io/github/${{ github.repository }}/commit/${{ github.sha }} | |
job_create_release: | |
name: Create GitHub Release | |
runs-on: ubuntu-latest | |
if: github.ref_type == 'tag' | |
needs: job_lint_test_build | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout, Setup Node.js v${{ env.NODE_VERSION }} and Install dependencies | |
uses: manferlo81/action-checkout-node-install@v0 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
env: | |
NODE_VERSION: 20.x | |
- name: Build | |
run: npm run build | |
- name: Create Tarball | |
run: npm pack | |
- name: Create release | |
uses: manferlo81/action-auto-release@v0 | |
with: | |
files: map-number-*.tgz | |
job_publish_to_npm: | |
name: Publish Package to npm Registry | |
runs-on: ubuntu-latest | |
if: github.ref_type == 'tag' | |
needs: job_lint_test_build | |
steps: | |
- name: Checkout, Setup Node.js v${{ env.NODE_VERSION }} and Install dependencies | |
uses: manferlo81/action-checkout-node-install@v0 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
env: | |
NODE_VERSION: 20.x | |
- name: Build | |
run: npm run build | |
- name: Publish Package | |
run: npm publish --provenance --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |