0.26.6 #19
Workflow file for this run
This file contains hidden or 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: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: nwolverson/setup-purescript@30d9b862f160b3a09a21a6457d6bc0d1ac9e92f3 | |
with: | |
purescript: "0.15.2" | |
spago: "latest" | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "16" | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Build source | |
run: npm run-script build | |
- name: Test | |
run: npm test | |
# Create the extension via below in a dry run | |
- name: Package Extension | |
id: packageExtension | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: stub | |
dryRun: true | |
# upload built extension to new release | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
fail_on_unmatched_files: true | |
files: ${{ steps.packageExtension.outputs.vsixPath }} | |
# Publish to VS Marketplace | |
- name: Publish to Visual Studio Marketplace | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} | |
extensionFile: ${{ steps.packageExtension.outputs.vsixPath }} | |
registryUrl: https://marketplace.visualstudio.com | |
# Publish to OpenVSX registry | |
- name: Publish to Open VSX Registry | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.OPEN_VSX_TOKEN }} | |
extensionFile: ${{ steps.packageExtension.outputs.vsixPath }} |