Skip to content

Commit 88da71b

Browse files
authored
Merge pull request #491 from devmount/chores/dependency-and-workflow-updates
Dependency and workflow updates
2 parents 228e6c3 + edeb3b4 commit 88da71b

File tree

5 files changed

+1000
-779
lines changed

5 files changed

+1000
-779
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/nightly.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,26 @@ jobs:
1515
build:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
19-
- name: Use Node.js 20
20-
uses: actions/setup-node@v4
18+
- uses: actions/checkout@v6
19+
- name: Use Node.js 22
20+
uses: actions/setup-node@v6
2121
with:
22-
node-version: 20
23-
- name: Get Timestamp
24-
id: timestamp
22+
node-version: 22
23+
- name: Compute Filename
24+
id: file
2525
run: |
2626
d=$(date +%s)
2727
echo "Current timestamp is ${d}"
28-
echo ::set-output name=now::${d}
29-
- name: Get Version
30-
id: version
31-
run: |
3228
PACKAGE_JSON_PATH="${1-.}"
3329
echo "Reading package.json from ${PACKAGE_JSON_PATH}/package.json"
3430
patch=v$(cat ${PACKAGE_JSON_PATH}/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
3531
echo "Got version ${patch}. Now increment it!"
3632
[[ ${patch::-2} =~ ([^0-9].*)([0-9]+) ]]
3733
next="${BASH_REMATCH[1]}$(( ${BASH_REMATCH[2]} + 1 ))"
3834
echo "Assumed next version is ${next}"
39-
echo ::set-output name=next::${next}
40-
- name: Build filename
41-
id: file
42-
run: |
43-
filename=third-stats_${{ steps.version.outputs.next }}-alpha.${{ steps.timestamp.outputs.now }}.xpi
44-
echo "Built filename ${filename}"
45-
echo ::set-output name=name::${filename}
35+
filename=third-stats_${next}-alpha.${d}.xpi
36+
echo "Built filename is ${filename}"
37+
echo "FILENAME=${filename}" >> $GITHUB_OUTPUT
4638
- name: Build app using NPM
4739
run: |
4840
npm install
@@ -51,17 +43,17 @@ jobs:
5143
shell: bash
5244
run: |
5345
cd dist/
54-
zip -q -r ../${{ steps.file.outputs.name }} ./
46+
zip -q -r ../${{ steps.file.outputs.FILENAME }} ./
5547
- name: Upload add-on nightly build artifact
56-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@v6
5749
with:
5850
name: third-stats-nightly
59-
path: ${{ steps.file.outputs.name }}
51+
path: ${{ steps.file.outputs.FILENAME }}
6052
- name: Push add-on to CDN
61-
uses: burnett01/rsync-deployments@7.0.2
53+
uses: burnett01/rsync-deployments@v8
6254
with:
6355
switches: -avzr --delete
64-
path: ${{ steps.file.outputs.name }}
56+
path: ${{ steps.file.outputs.FILENAME }}
6557
remote_path: ${{ secrets.CDN_PATH }}
6658
remote_host: ${{ secrets.CDN_HOST }}
6759
remote_port: ${{ secrets.CDN_PORT }}

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
name: Lint JS
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919
- run: npx --yes oxlint@1.9.0 --deny-warnings # change to the latest release

0 commit comments

Comments
 (0)