Bump webpack from 5.95.0 to 5.97.1 #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 | |
with: | |
node-version: 20.x | |
- name: Setup npmrc | |
run: | | |
echo "@eclipse-cdt-cloud:registry=https://npm.pkg.github.com/" >> .npmrc | |
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" >> .npmrc | |
- name: Build | |
env: | |
GITHUB_TOKEN: ${{github.token}} | |
run: | | |
yarn install --ignore-scripts | |
yarn build | |
yarn package | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 | |
with: | |
name: vsix-package | |
path: ./*.vsix | |
retention-days: 1 | |
release: | |
needs: build | |
name: Create Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
- uses: actions/download-artifact@v4 | |
with: | |
path: artifacts | |
- uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 | |
with: | |
files: artifacts/*/*.vsix | |
determine-version: | |
name: Determine Version | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.get-extension-version.outputs.version }} | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 | |
with: | |
node-version: 20.x | |
- name: Determine extension version | |
id: get-extension-version | |
run: | | |
VERSION=$(npm pkg get version | sed 's/"//g') | |
echo "Current version: $VERSION" | |
echo version=$VERSION >> $GITHUB_OUTPUT | |
publish-api-types: | |
name: Publish Extension API | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
needs: | |
- determine-version | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 | |
with: | |
node-version: 20.x | |
registry-url: 'https://npm.pkg.github.com' | |
always-auth: true | |
- name: Set package version to match extension | |
run: yarn --cwd api version --no-git-tag-version --new-version=$VERSION | |
env: | |
VERSION: ${{ needs.determine-version.outputs.version }} | |
- run: yarn publish | |
working-directory: api | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
publish-open-vsx-registry: | |
needs: | |
- release | |
- publish-api-types | |
name: Open VSX | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
- uses: actions/download-artifact@v4 | |
with: | |
path: artifacts | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 | |
with: | |
node-version: 20.x | |
- name: Publish | |
run: | | |
npx ovsx publish -i artifacts/*/*.vsix -p ${{secrets.OPEN_VSX_TOKEN}} | |
publish-vscode-marketplace: | |
needs: | |
- release | |
- publish-api-types | |
name: VS Code Marketplace | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
- uses: actions/download-artifact@v4 | |
with: | |
path: artifacts | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 | |
with: | |
node-version: 20.x | |
- name: Publish | |
run: | | |
npx vsce publish -i artifacts/*/*.vsix -p ${{secrets.VS_MARKETPLACE_TOKEN}} |