Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Jun 1, 2024
1 parent 5349fbc commit f340c66
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- run: sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -59,7 +59,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Install Dependencies for custom build
shell: bash
Expand All @@ -83,4 +83,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Node v18.15.x
uses: actions/setup-node@v3
- name: Setup Node v18.18.x
uses: actions/setup-node@v4
with:
node-version: "18.15.x"
node-version: "18.18.x"
registry-url: "https://npm.pkg.github.com"
scope: "@paulober"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Python v3.11
uses: actions/setup-python@v4
- name: Setup Python v3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- name: Install NPM Dependencies And Download Stubs
shell: bash
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Node v18.15.x
uses: actions/setup-node@v3
- name: Setup Node v18.18.x
uses: actions/setup-node@v4
with:
node-version: '18.15.x'
node-version: '18.18.x'
registry-url: "https://npm.pkg.github.com"
scope: "@paulober"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Python v3.11
uses: actions/setup-python@v4
- name: Setup Python v3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- name: Install NPM dependencies And Download Stubs
shell: bash
Expand All @@ -45,13 +45,13 @@ jobs:
OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }}

- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Visual Studio Code extension package
path: pico-w-go-*.vsix

- name: Upload Artifact To Release
#gh api --method POST -H "Accept: application/vnd.github+json" /repos/paulober/Pico-W-Go/releases/$RELEASE_ID/assets
#gh api --method POST -H "Accept: application/vnd.github+json" /repos/paulober/MicroPico/releases/$RELEASE_ID/assets
run: gh release upload $RELEASE_TAG_NAME pico-w-go-*.vsix
env:
#RELEASE_ID: ${{ github.event.release.id }}
Expand Down

0 comments on commit f340c66

Please sign in to comment.