Skip to content

Commit

Permalink
fix: update repo structure and fix circleci publish job (#28)
Browse files Browse the repository at this point in the history
@W-8148467@
  • Loading branch information
lcampos authored Oct 9, 2020
1 parent 7c4ea96 commit b3469fc
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 1,035 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ _refs:
install: &install
name: Install dependencies
command: |
git --version
npm --version
node --version
npm install
Expand Down Expand Up @@ -63,6 +64,23 @@ jobs:
key: v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "package.json"}}
paths:
- ~/cli/node_modules

build-artifact:
description: 'Building and archiving tarball'
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run: *install
- run: npm pack
- run:
name: Staging artifact
command: |
mkdir artifact
find . -name "*.tgz" -type f -exec cp {} ./artifact \;
- store_artifacts:
path: ./artifact

publish:
<<: *defaults
steps:
Expand Down Expand Up @@ -110,6 +128,7 @@ workflows:
jobs:
- node-latest
- node-12
- build-artifact
- cache:
filters:
tags:
Expand All @@ -126,6 +145,7 @@ workflows:
color: "#0E1111"
- node-latest
- node-12
- build-artifact
- hold: # Requires manual approval in Circle Ci
type: approval
- publish:
Expand All @@ -137,6 +157,7 @@ workflows:
requires:
- node-latest
- node-12
- build-artifact
- hold

scheduled-workflow:
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
# yarn lock
yarn.lock

# Files generated by prepare script
/*.schema.json
/index.js

# Logs
logs
*.log
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ For most other editors, you can use the schemas by adding the `$schema` property

```json
{
"$schema": "https://raw.githubusercontent.com/forcedotcom/schemas/master/schemas/sfdx-project.schema.json"
"$schema": "https://raw.githubusercontent.com/forcedotcom/schemas/main/sfdx-project.schema.json"
//...
}
```
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"scripts": {
"commit-init": "commitizen init cz-conventional-changelog --save-dev --save-exact --force",
"commit": "git-cz",
"prepare": "npx shx cp -r schemas/* ./",
"postpublish": "npx shx rm -f index.js ./*.schema.json",
"test": "jest",
"prettier": "prettier ./**/*.{js,json,ts,md} --write"
},
Expand Down
File renamed without changes.
Loading

0 comments on commit b3469fc

Please sign in to comment.