-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/hidden-files-in-IFS
- Loading branch information
Showing
17 changed files
with
272 additions
and
225 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
publish_prerelease: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Update version number for prelease | ||
run: | | ||
npm version --no-git-tag-version patch | ||
cd types && npm version --no-git-tag-version patch | ||
- name: get-npm-version | ||
id: package-version | ||
uses: martinbeentjes/[email protected] | ||
|
||
- name: Package | ||
run: npx @vscode/vsce package --pre-release | ||
|
||
- name: Publish | ||
run: | | ||
npx @vscode/vsce publish --skip-duplicate --packagePath code-for-ibmi-${{ steps.package-version.outputs.current-version}}.vsix --pat ${{ secrets.PUBLISHER_TOKEN }} | ||
npx ovsx publish --skip-duplicate --packagePath code-for-ibmi-${{ steps.package-version.outputs.current-version}}.vsix --pat ${{ secrets.OPENVSX_TOKEN }} | ||
- name: Bump version number for next dev cycle | ||
run: | | ||
npm version --no-git-tag-version prerelease --preid dev | ||
cd types && npm version --no-git-tag-version prerelease --preid dev | ||
- name: get-npm-version | ||
id: devcycle-version | ||
uses: martinbeentjes/[email protected] | ||
|
||
- name: Commit version bump | ||
run: | | ||
git config user.name 'github-actions[bot]' | ||
git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
git commit --allow-empty -a -m "Pre-release ${{ steps.devcycle-version.outputs.current-version}}" | ||
git push |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.