This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
build(npm): bump @types/node from 18.19.64 to 22.9.0 #303
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: Node.js | |
on: | |
push: | |
pull_request: | |
schedule: | |
# Check if it works with current dependencies | |
- cron: '42 2 * * 6' # weekly on Saturday 2:42 UTC | |
jobs: | |
test: | |
name: Node.js | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- uses: actions/checkout@v4 | |
- run: npm install | |
- run: npm test | |
- run: npm pack | |
publish: | |
name: Publish on NPM | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
needs: test | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm install | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_CONFIG_ACCESS: public | |
NPM_CONFIG_PROVENANCE: true | |
- name: Create GitHub release | |
uses: softprops/action-gh-release@v1 |