Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use actions that run on node20 #198

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -56,7 +56,7 @@ jobs:
run: npm run package

- name: Archive VSIX
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vscode-bitbake
path: client/yocto-bitbake*.vsix
Expand All @@ -68,7 +68,7 @@ jobs:
needs: build
if: success() && startsWith( github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
- run: npx vsce publish --packagePath $(find . -iname yocto-bitbake*.vsix)
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
Expand All @@ -80,23 +80,23 @@ jobs:
needs: build
if: success() && startsWith( github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
- run: npx ovsx publish $(find . -iname yocto-bitbake*.vsix) -p ${VSX_PAT}
env:
VSX_PAT: ${{ secrets.VSX_PAT }}

build-language-server-standalone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm run clean
- run: cd server && npm install
- run: cd server && npm pack
- name: Archive server package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: language-server-bitbake
path: server/language-server-bitbake-*.tgz
Expand All @@ -109,11 +109,11 @@ jobs:
if: success() && startsWith( github.ref, 'refs/tags/')
steps:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
- name: Publish to npm
run: npm publish $(find . -iname language-server-bitbake-*.tgz)
env:
Expand Down