Browse Source

Changes insiders to "pre-release"

main
Eric Amodio 2 years ago
parent
commit
a61c28ede6
9 changed files with 109 additions and 109 deletions
  1. +4
    -4
      .github/workflows/cd-pre.yml
  2. +1
    -1
      .vscodeignore
  3. +2
    -2
      CONTRIBUTING.md
  4. +0
    -0
      README.pre.md
  5. +4
    -4
      package.json
  6. +1
    -1
      scripts/applyPreReleasePatch.js

.github/workflows/cd-insiders.yml → .github/workflows/cd-pre.yml View File

@ -1,4 +1,4 @@
name: Publish Insiders
name: Publish pre-release
on:
schedule:
@ -47,7 +47,7 @@ jobs:
echo "::set-output name=status::changed"
publish:
name: Publish insiders
name: Publish pre-release
needs: check
runs-on: ubuntu-latest
if: needs.check.outputs.status == 'changed'
@ -60,8 +60,8 @@ jobs:
node-version: '14'
- name: Install
run: yarn
- name: Apply insiders patch
run: yarn run patch-insiders
- name: Apply pre-release patch
run: yarn run patch-pre
- name: Setup Environment
run: node -e "console.log('PACKAGE_VERSION=' + require('./package.json').version + '\nPACKAGE_NAME=' + require('./package.json').name + '-' + require('./package.json').version)" >> $GITHUB_ENV
- name: Package extension

+ 1
- 1
.vscodeignore View File

@ -35,7 +35,7 @@ BACKERS.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
esbuild.js
README.insiders.md
README.pre.md
svgo.config.js
tsconfig*.json
tsconfig*.tsbuildinfo

+ 2
- 2
CONTRIBUTING.md View File

@ -199,6 +199,6 @@ After the version commit and new tags are pushed to GitHub, the [Publish Stable
If the action fails, the VSIX will need to be built locally with `yarn package` and uploaded manually in the marketplace.
### Insiders release
### Pre-release edition
The [Publish Insiders workflow](.github/workflows/cd-insiders.yml) is automatically run every AM unless no new changes have been committed to `main`.
The [Publish Pre-release workflow](.github/workflows/cd-pre.yml) is automatically run every AM unless no new changes have been committed to `main`.

README.insiders.md → README.pre.md View File


+ 4
- 4
package.json View File

@ -3482,8 +3482,7 @@
"order": 70
},
"gitlens.insiders": {
"deprecationMessage": "Deprecated. Use the Insiders edition of GitLens instead",
"markdownDeprecationMessage": "Deprecated. Use the [Insiders edition](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens-insiders) of GitLens instead"
"deprecationMessage": "Deprecated. Use the pre-release edition of GitLens instead"
}
}
}
@ -11637,10 +11636,11 @@
"lint": "eslint \"src/**/*.ts?(x)\" --fix",
"lint:webviews": "eslint \"src/webviews/apps/**/*.ts?(x)\" --fix",
"package": "vsce package --yarn",
"package-insiders": "yarn run patch-insiders && yarn run package",
"patch-insiders": "node ./scripts/applyPatchForInsiders.js",
"package-pre": "yarn run patch-pre && yarn run package --pre-release",
"patch-pre": "node ./scripts/applyPreReleasePatch.js",
"pretty": "prettier --config .prettierrc --loglevel warn --write .",
"pub": "vsce publish --yarn",
"pub-pre": "vsce publish --yarn --pre-release",
"rebuild": "yarn run reset && yarn run build",
"reset": "yarn run clean && yarn --frozen-lockfile",
"test": "node ./out/test/runTest.js",

scripts/applyPatchForInsiders.js → scripts/applyPreReleasePatch.js View File

@ -2,7 +2,7 @@
const fs = require('fs');
// Patch README
const insert = fs.readFileSync('./README.insiders.md', { encoding: 'utf8' });
const insert = fs.readFileSync('./README.pre.md', { encoding: 'utf8' });
const data = fs.readFileSync('./README.md', { encoding: 'utf8' });
fs.writeFileSync('./README.md', `${insert}\n${data}`);

Loading…
Cancel
Save