Skip to content

Commit 9908cd0

Browse files
authored
Update workflow (#120)
1 parent 067c395 commit 9908cd0

3 files changed

Lines changed: 11 additions & 36 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: CI
22

33
on:
4-
push:
54
pull_request:
65
branches:
76
- main
Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: "CodeQL"
1+
name: CodeQL
22

33
on:
44
push:
55
branches: [main]
66
pull_request:
7-
# The branches below must be a subset of the branches above
87
branches: [main]
98
schedule:
109
- cron: "0 13 * * 1"
@@ -14,41 +13,20 @@ jobs:
1413
name: Analyse
1514
runs-on: ubuntu-latest
1615

16+
permissions:
17+
security-events: write
18+
1719
steps:
1820
- name: Checkout repository
1921
uses: actions/checkout@v6
20-
with:
21-
# We must fetch at least the immediate parents so that if this is
22-
# a pull request then we can checkout the head.
23-
fetch-depth: 2
2422

25-
# If this run was triggered by a pull request event, then checkout
26-
# the head of the pull request instead of the merge commit.
27-
- run: git checkout HEAD^2
28-
if: ${{ github.event_name == 'pull_request' }}
29-
30-
# Initializes the CodeQL tools for scanning.
3123
- name: Initialize CodeQL
3224
uses: github/codeql-action/init@v4
33-
# Override language selection by uncommenting this and choosing your languages
34-
# with:
35-
# languages: go, javascript, csharp, python, cpp, java
25+
with:
26+
languages: javascript-typescript
3627

37-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38-
# If this step fails, then you should remove it and run the build manually (see below)
3928
- name: Autobuild
40-
uses: github/codeql-action/autobuild@v3
41-
42-
# ℹ️ Command-line programs to run using the OS shell.
43-
# 📚 https://git.io/JvXDl
44-
45-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
46-
# and modify them (or add more) to build your code if your project
47-
# uses a compiled language
48-
49-
#- run: |
50-
# make bootstrap
51-
# make release
29+
uses: github/codeql-action/autobuild@v4
5230

5331
- name: Perform CodeQL Analysis
54-
uses: github/codeql-action/analyze@v3
32+
uses: github/codeql-action/analyze@v4

.github/workflows/publish.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- uses: voidzero-dev/setup-vp@v1
2323
with:
24-
node-version: "22"
24+
node-version: "24"
2525
cache: true
2626

2727
- run: vp install
@@ -45,21 +45,19 @@ jobs:
4545

4646
- uses: voidzero-dev/setup-vp@v1
4747
with:
48-
node-version: "22"
48+
node-version: "24"
4949
cache: true
5050

5151
- run: vp install
5252
- run: vp pack
5353

5454
- uses: actions/setup-node@v6
5555
with:
56-
node-version: "22"
56+
node-version: lts/*
5757
registry-url: "https://registry.npmjs.org"
5858

5959
- name: Publish to npm
6060
run: npm publish --provenance --access public --ignore-scripts
61-
env:
62-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6361

6462
create-release:
6563
needs: [build, publish-npm]

0 commit comments

Comments
 (0)