Skip to content

Commit

Permalink
modified: .circleci/config.yml
Browse files Browse the repository at this point in the history
	renamed:    github-rel-env/package.json -> npmjs-pub-env/package.json
	modified:   package-lock.json
	modified:   package.json
  • Loading branch information
Young Yang committed Mar 10, 2023
1 parent d31948d commit cbda4df
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 26 deletions.
35 changes: 14 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,10 @@ jobs:
command: |
npm i
npm run ci
- run:
name: "Build Npmjs Package"
command: |
cp vscode-mta-tools-*.vsix ./README.md ./LICENSE ./github-rel-env
cd ./github-rel-env
npm pack
- persist_to_workspace:
root: "./github-rel-env"
root: "."
paths:
# https://golang.org/pkg/path/filepath/#Match
- vscode-mta-tools-*.vsix
- young-yang217-vscode-mta-tools-*.tgz

release-to-github:
docker:
Expand All @@ -87,22 +79,14 @@ jobs:
working_directory: ~/repo
steps:
- checkout
- run:
#Make sure HEAD points to master
# TODO: this is horrible as it makes the build non-reproducible
# but the `release` job performs a bump commit as part of the release flow
# so the fetch/rebase is actually needed (unless release process refactored...)
name: rebase to master
command: |
git checkout master
git fetch
git rebase
- attach_workspace:
at: ./npmjs-pub-env
- run:
name: publish to npm
command: |
echo "//registry.npmjs.org/:_authToken=$CLOUD_MTA_BOT_NPM_TOKEN" > .npmrc
npm install
npm run ci
cp ./README.md ./LICENSE ./npmjs-pub-env
cd ./npmjs-pub-env
npm publish
workflows:
Expand Down Expand Up @@ -156,3 +140,12 @@ workflows:
only: /^v[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/
- publish-to-npm:
requires:
- build-node14
- build-node16
filters:
tags:
only: /^v[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/
4 changes: 2 additions & 2 deletions github-rel-env/package.json → npmjs-pub-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "@young-yang217/vscode-mta-tools",
"displayName": "vscode-mta-tools",
"description": "VS Code Multi-Target Application tools",
"version": "1.4.25",
"version": "1.4.26",
"publisher": "SAPSE",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "[email protected]/SAP/vscode-mta-tools.git"
"url": "[email protected]/young-yang03/vscode-mta-tools.git"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-mta-tools",
"displayName": "vscode-mta-tools",
"description": "VS Code Multi-Target Application tools",
"version": "1.4.25",
"version": "1.4.26",
"publisher": "SAPSE",
"license": "Apache-2.0",
"repository": {
Expand Down

0 comments on commit cbda4df

Please sign in to comment.