From 52d2aeea28b75a5a21731db1f5655cdcca94812c Mon Sep 17 00:00:00 2001 From: Eduardo de Moura Rodrigues <16357187+eduardomourar@users.noreply.github.com> Date: Mon, 3 Jul 2023 23:12:50 +0200 Subject: [PATCH 1/2] chore(main): release wit-idl 0.1.2 --- .github/release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/release-please-manifest.json b/.github/release-please-manifest.json index a915e8c..001eb2c 100644 --- a/.github/release-please-manifest.json +++ b/.github/release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.1" + ".": "0.1.2" } diff --git a/CHANGELOG.md b/CHANGELOG.md index a371f17..dce4dc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.1.2](https://github.com/bytecodealliance/vscode-wit/compare/wit-idl-v0.1.1...wit-idl-v0.1.2) (2023-07-03) + + +### Features + +* add include keyword to wit grammar ([#17](https://github.com/bytecodealliance/vscode-wit/issues/17)) ([dcc5a30](https://github.com/bytecodealliance/vscode-wit/commit/dcc5a30d300146eac0ee5fac8287a4d30ce6106f)) + ## [0.1.1](https://github.com/bytecodealliance/vscode-wit/compare/wit-idl-v0.1.0...wit-idl-v0.1.1) (2023-04-15) diff --git a/package-lock.json b/package-lock.json index 3c9f4d6..9910548 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wit-idl", - "version": "0.1.1", + "version": "0.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "wit-idl", - "version": "0.0.3", + "version": "0.1.2", "license": "Apache-2.0 WITH LLVM-exception", "devDependencies": { "@vscode/vsce": "^2.19.0", diff --git a/package.json b/package.json index 7423aa5..560bae2 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "WIT IDL", "description": "WebAssembly Interface Type (WIT) IDL Extension for VSCode", "private": true, - "version": "0.1.1", + "version": "0.1.2", "publisher": "bytecodealliance", "icon": "images/wit-icon.png", "repository": { From 09333f41e8198437ab271401cd9fd7c403027c06 Mon Sep 17 00:00:00 2001 From: Eduardo Rodrigues Date: Tue, 4 Jul 2023 00:03:36 +0200 Subject: [PATCH 2/2] chore(ci): enable release-please bot --- .github/release-please.yml | 4 ++++ .github/workflows/release.yml | 45 ++++++++++++++++++++++------------- 2 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 .github/release-please.yml diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 0000000..6229608 --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1,4 @@ +handleGHRelease: true +manifest: true +manifestConfig: .github/release-please-config.json +manifestFile: .github/release-please-manifest.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73bb21a..e92cadb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,19 @@ name: release on: - push: - branches: [main] + workflow_dispatch: + inputs: + release_name: + required: true + type: string + default: "wit-idl: v0.0.1" + tag_name: + required: true + type: string + default: "wit-idl-v0.0.1" + release: + types: + - released concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -13,24 +24,28 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - pull-requests: write outputs: - release_created: ${{ steps.release.outputs.release_created }} - tag_name: ${{ steps.release.outputs.tag_name }} + release_name: ${{ steps.event_details.outputs.release_name }} + tag_name: ${{ steps.event_details.outputs.tag_name }} + version: ${{ steps.event_details.outputs.version }} steps: - - uses: google-github-actions/release-please-action@v3 - id: release - with: - token: ${{ secrets.PAT_GITHUB }} - command: manifest - config-file: .github/release-please-config.json - manifest-file: .github/release-please-manifest.json + - name: Check event details + id: event_details + env: + RELEASE_NAME: ${{ github.event.release.name || inputs.release_name }} + TAG_NAME: ${{ github.event.release.tag_name || inputs.tag_name }} + run: | + echo "release_name=${RELEASE_NAME}" >> $GITHUB_OUTPUT + echo "tag_name=${TAG_NAME}" >> $GITHUB_OUTPUT + echo "version=${TAG_NAME##*-v}" >> $GITHUB_OUTPUT + echo "package_name=${RELEASE_NAME%:*}" >> $GITHUB_OUTPUT - uses: actions/checkout@v3 + with: + ref: ${{ steps.event_details.outputs.tag_name }} - name: Add files and publish release - if: ${{ steps.release.outputs.release_created }} env: GITHUB_TOKEN: ${{ github.token }} - TAG_NAME: ${{ steps.release.outputs.tag_name }} + TAG_NAME: ${{ steps.event_details.outputs.tag_name }} run: | npm ci npm run package @@ -39,7 +54,6 @@ jobs: label: needs: [publish] - if: ${{ needs.publish.outputs.release_created }} runs-on: ubuntu-latest permissions: contents: read @@ -58,7 +72,6 @@ jobs: comments: needs: [publish] - if: ${{ needs.publish.outputs.release_created }} runs-on: ubuntu-latest permissions: contents: write