From ee47293cf601688f1fbddfbc1aca90a0831e1b44 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Fri, 28 Oct 2022 13:48:36 -0700 Subject: [PATCH] Revert "Test branch (#5733)" (#5734) This reverts commit 5c751f26ee7ba221bfc04be9545a7f40eb132d80. --- .github/workflows/publish.yaml | 14 ++++++++------ .github/workflows/release.yaml | 21 --------------------- docs/MAINTAINING.md | 3 ++- test/unit/node/test-plugin/package.json | 2 +- 4 files changed, 11 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5bbc39292..569a9384d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -28,13 +28,15 @@ jobs: id: version run: echo "::set-output name=version::$(jq -r .version package.json)" - - name: Download npm package from release artifacts - uses: robinraju/release-downloader@v1.5 + - name: Download artifact + uses: dawidd6/action-download-artifact@v2 + id: download with: - repository: "coder/code-server" - tag: v${{ steps.version.outputs.version }} - fileName: "npm-package" - out-file-path: "release-npm-package" + branch: release/v${{ steps.version.outputs.version }} + workflow: build.yaml + workflow_conclusion: completed + name: "npm-package" + path: release-npm-package - name: Publish npm package and tag with "latest" run: yarn publish:npm diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 91d536dee..61ec8a5ba 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -249,24 +249,3 @@ jobs: draft: true discussion_category_name: "📣 Announcements" files: ./release-packages/* - - npm-package: - name: Upload npm package - runs-on: ubuntu-latest - timeout-minutes: 15 - steps: - - name: Download artifacts - uses: dawidd6/action-download-artifact@v2 - id: download - with: - branch: ${{ github.ref }} - workflow: build.yaml - workflow_conclusion: completed - check_artifacts: true - name: npm-package - - - uses: softprops/action-gh-release@v1 - with: - draft: true - discussion_category_name: "📣 Announcements" - files: ./npm-package diff --git a/docs/MAINTAINING.md b/docs/MAINTAINING.md index 6956bb669..3300cc0d6 100644 --- a/docs/MAINTAINING.md +++ b/docs/MAINTAINING.md @@ -141,7 +141,8 @@ changelog](https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS). ### Publishing a release -1. Create a new branch called `release` +1. Create a new branch called `release/v0.0.0` (replace 0s with actual version aka v4.5.0) + 1. If you don't do this, the `npm-brew` GitHub workflow will fail. It looks for the release artifacts under the branch pattern. 1. Run `yarn release:prep` 1. Bump chart version in `Chart.yaml`. 1. Summarize the major changes in the `CHANGELOG.md` diff --git a/test/unit/node/test-plugin/package.json b/test/unit/node/test-plugin/package.json index 0247d60be..817a883e9 100644 --- a/test/unit/node/test-plugin/package.json +++ b/test/unit/node/test-plugin/package.json @@ -3,7 +3,7 @@ "name": "test-plugin", "version": "1.0.0", "engines": { - "code-server": "*" + "code-server": "^4.8.1" }, "main": "out/index.js", "devDependencies": {