Bundle Extension as Artifact Download #1
Workflow file for this run
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: Bundle Extension as Artifact Download | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: Bundle Extension as Artifact Download | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: "npm" | |
- run: npm install | |
- run: echo PKG_VERSION="$(git show --no-patch --format=0.0.0-pr.%ct.${{ github.event.pull_request.number }}.%h)" >> $GITHUB_ENV | |
- run: npm pkg set "version=${{ env.PKG_VERSION }}" | |
- run: npx -y @vscode/vsce package --out vscode-apollo-${{ env.PKG_VERSION }}.vsix | |
- uses: actions/upload-artifact@v4 | |
id: artifact-upload-step | |
with: | |
name: extension | |
path: vscode-apollo-${{ env.PKG_VERSION }}.vsix | |
retention-days: 14 | |
- name: Output artifact URL | |
run: echo 'Artifact URL is ${{ steps.artifact-upload-step.outputs.artifact-url }}' |