Skip to content

chore(deps): bump @isaacs/brace-expansion from 5.0.0 to 5.0.1 (#863) #20

chore(deps): bump @isaacs/brace-expansion from 5.0.0 to 5.0.1 (#863)

chore(deps): bump @isaacs/brace-expansion from 5.0.0 to 5.0.1 (#863) #20

Workflow file for this run

---
name: Stage
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '**/*.md'
- .github/workflows/**
jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == 'fabric8-analytics'
name: Build and publish early access package
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://npm.pkg.github.com'
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create .npmrc
run: |
echo "@trustification:registry=https://npm.pkg.github.com" > .npmrc
echo "@fabric8-analytics:registry=https://npm.pkg.github.com" >> .npmrc
- name: Install @vscode/vsce
run: npm i -g @vscode/vsce
- name: Install Dependencies
run: npm ci
- name: Get commit SHA EA version
id: ea_version
run: |
# Get the current version from package.json
next_base_version=$(npm version patch --no-git-tag-version)
# Get short commit SHA
short_sha=$(git rev-parse --short HEAD)
echo "version=$next_base_version-ea.$short_sha" >> "$GITHUB_OUTPUT"
- name: Update package with EA version
run: |
npm version ${{ steps.ea_version.outputs.version }} --no-git-tag-version --allow-same-version
- name: Compile for test
run: npm run test-compile
- name: VSCE package
run: |
vsce package --out fabric8-analytics-${{ steps.ea_version.outputs.version }}.vsix
- name: Create SHA256 checksum
run: |
sha256sum fabric8-analytics-${{ steps.ea_version.outputs.version }}.vsix > fabric8-analytics-${{ steps.ea_version.outputs.version }}.vsix.sha256
- name: Upload vsix package and checksum
uses: actions/upload-artifact@v4
with:
name: vsix
path: |
./fabric8-analytics-${{ steps.ea_version.outputs.version }}.vsix
./fabric8-analytics-${{ steps.ea_version.outputs.version }}.vsix.sha256
- name: Output artifact download URL
run: |
echo "::notice::Download the early access package from: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
echo "::notice::Package version: ${{ steps.ea_version.outputs.version }}"