Skip to content

Commit

Permalink
feat(node.js.yml): workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry committed Dec 12, 2024
1 parent abceff0 commit 937a96b
Show file tree
Hide file tree
Showing 5 changed files with 9,038 additions and 8 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x', '20.x', '22.11.0']

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ dist/
/.eslintcache
/page.wiki
/personal_access_token
package-lock.json
*.vsix
2 changes: 1 addition & 1 deletion bump.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/local/bin/bash
if [[ $2 == 'npm' ]]
then
vsce publish
npx vsce publish
else
npm run lint && npm run build && npm test
if [[ $? -eq 0 ]]
Expand Down
Loading

0 comments on commit 937a96b

Please sign in to comment.