Skip to content

Commit

Permalink
ci(actions): package before create release
Browse files Browse the repository at this point in the history
This way it doesn't create a Release if it fails to create a VSCE package
  • Loading branch information
cecilemuller committed Jun 4, 2021
1 parent 8788ca9 commit 6ae912f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ jobs:
npm run build -- --version ${{ github.event.inputs.version }} --tag ${{ steps.deployment.outputs.tag }}
npm run test:postbuild
- name: Install VSCE
run: npm install -g vsce

- name: Create VSIX
run: vsce package
working-directory: package

- name: Create Release
id: release
uses: actions/github-script@v4.0.2
Expand All @@ -70,13 +77,6 @@ jobs:
});
core.setOutput('upload_url', release.data.upload_url);
- name: Install VSCE
run: npm install -g vsce

- name: Create VSIX
run: vsce package
working-directory: package

- name: Attach VSIX
uses: actions/upload-release-asset@v1.0.2
env:
Expand Down

0 comments on commit 6ae912f

Please sign in to comment.