scratch-gui 0.1.0-prerelease.20220928050448 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,8 @@
1
1
  version: 2.1
2
2
  orbs:
3
- browser-tools: circleci/browser-tools@1.2.4
3
+ browser-tools: circleci/browser-tools@1.2.4
4
+ commitlint: conventional-changelog/commitlint@1.0.0
5
+ node: circleci/node@5.0.2
4
6
  aliases:
5
7
  - &save_git_cache
6
8
  save_cache:
@@ -42,10 +44,12 @@ aliases:
42
44
  - v3-npm-
43
45
  - &defaults
44
46
  docker:
45
- - image: cimg/node:12.22.11-browsers
47
+ # TODO: fix scratch-audio and change this to `cimg/node:lts-browsers`
48
+ - image: cimg/node:14.20-browsers
46
49
  auth:
47
50
  username: $DOCKERHUB_USERNAME
48
51
  password: $DOCKERHUB_PASSWORD
52
+ executor: node/default
49
53
  working_directory: ~/repo
50
54
 
51
55
  jobs:
@@ -57,7 +61,7 @@ jobs:
57
61
  steps:
58
62
  - *restore_git_cache
59
63
  - checkout
60
- - run: npm ci
64
+ - node/install-packages
61
65
  - run:
62
66
  name: Lint
63
67
  command: npm run test:lint -- --quiet --output-file test-results/eslint-results.xml --format junit
@@ -90,7 +94,7 @@ jobs:
90
94
  steps:
91
95
  - *restore_git_cache
92
96
  - checkout
93
- - run: npm ci
97
+ - node/install-packages
94
98
  - *save_git_cache
95
99
  - *save_npm_cache
96
100
  lint:
@@ -173,27 +177,19 @@ jobs:
173
177
 
174
178
  deploy-npm:
175
179
  <<: *defaults
176
- environment:
177
- NODE_OPTIONS: --max-old-space-size=4000
178
180
  steps:
179
181
  - *restore_git_cache
180
- - *restore_dist_cache
181
182
  - checkout
182
- - run: |
183
- echo export RELEASE_VERSION="0.1.0-prerelease.$(date +'%Y%m%d%H%M%S')" >> $BASH_ENV
184
- echo export NPM_TAG=latest >> $BASH_ENV
185
- if [ "$CIRCLE_BRANCH" == "master" ]
186
- then echo export NPM_TAG=stable >> $BASH_ENV
187
- fi
188
- if [[ "$CIRCLE_BRANCH" == hotfix/* ]] # double brackets are important for matching the wildcard
189
- then echo export NPM_TAG=hotfix >> $BASH_ENV
190
- fi
191
- - run: npm version --no-git-tag-version $RELEASE_VERSION
192
- - run: |
193
- npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
194
- npm publish --tag $NPM_TAG
195
- - run: git tag $RELEASE_VERSION
196
- - run: git push $CIRCLE_REPOSITORY_URL $RELEASE_VERSION
183
+ - *restore_npm_cache
184
+ - *restore_dist_cache
185
+ - run:
186
+ name: adjust config for hotfix if necessary
187
+ command: |
188
+ # double brackets are important for matching the wildcard
189
+ if [[ "$CIRCLE_BRANCH" == hotfix/* ]]; then
190
+ sed -e "s|hotfix/REPLACE|${CIRCLE_BRANCH}|" --in-place release.config.js
191
+ fi
192
+ - run: npx semantic-release
197
193
 
198
194
  deploy-gh-pages:
199
195
  <<: *defaults
@@ -217,6 +213,10 @@ jobs:
217
213
 
218
214
  workflows:
219
215
  version: 2
216
+ commitlint:
217
+ jobs:
218
+ - commitlint/lint:
219
+ target-branch: develop
220
220
  push-translations:
221
221
  triggers:
222
222
  - schedule:
@@ -0,0 +1 @@
1
+ * text eol=lf
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx --no-install commitlint --edit "$1"