scratch-render-fonts 1.0.0-prerelease.20210401210003 → 1.0.0

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.
@@ -0,0 +1,81 @@
1
+ version: 2.1
2
+
3
+ executors:
4
+ default-executor:
5
+ docker:
6
+ - image: "cimg/node:8.17.0"
7
+ resource_class: large
8
+
9
+ commands:
10
+ setup:
11
+ steps:
12
+ - run:
13
+ name: Setup
14
+ command: |
15
+ npm install
16
+ npm update
17
+ npm prune
18
+ test:
19
+ steps:
20
+ - run:
21
+ name: Test
22
+ command: |
23
+ npm run test
24
+ deploy:
25
+ steps:
26
+ - run:
27
+ name: Deploy
28
+ command: |
29
+ echo "export NPM_TAG=latest" >> $BASH_ENV
30
+ echo "export NODE_ENV=production" >> $BASH_ENV
31
+ echo "export RELEASE_TIMESTAMP=$(date +'%Y%m%d%H%M%S')" >> $BASH_ENV
32
+ npm run build
33
+ VPKG=$($(npm bin)/json -f package.json version)
34
+ echo "export VERSION=${VPKG}-prerelease.$(date +%Y%m%d%H%M%S)" >> $BASH_ENV
35
+ npm --no-git-tag-version version $VERSION
36
+ after_deploy:
37
+ steps:
38
+ - run:
39
+ name: After Deploy
40
+ command: |
41
+ npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
42
+ npm publish
43
+
44
+ jobs:
45
+ build-and-test:
46
+ executor: default-executor
47
+ steps:
48
+ - checkout
49
+ - setup
50
+ - test
51
+ deploy:
52
+ executor: default-executor
53
+ steps:
54
+ - checkout
55
+ - setup
56
+ - deploy
57
+ - after_deploy
58
+
59
+ workflows:
60
+ build-and-test-workflow:
61
+ when:
62
+ not:
63
+ and:
64
+ - equal: [tsm/circleci, <<pipeline.git.branch>>]
65
+ jobs:
66
+ - build-and-test
67
+
68
+ deploy-workflow:
69
+ when:
70
+ or:
71
+ - equal: [master, <<pipeline.git.branch>>]
72
+ - equal: [develop, <<pipeline.git.branch>>]
73
+ - equal: [hotfix/*, <<pipeline.git.branch>>]
74
+ - equal: [tsm/circleci, <<pipeline.git.branch>>]
75
+ jobs:
76
+ - build-and-test
77
+ - deploy:
78
+ context:
79
+ - scratch-npm-creds
80
+ requires:
81
+ - build-and-test
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scratch-render-fonts",
3
- "version": "1.0.0-prerelease.20210401210003",
3
+ "version": "1.0.0",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "author": "Massachusetts Institute of Technology",
package/.travis.yml DELETED
@@ -1,35 +0,0 @@
1
- language: node_js
2
- node_js:
3
- - lts/*
4
- env:
5
- global:
6
- - NODE_ENV=production
7
- cache:
8
- directories:
9
- - node_modules
10
- install:
11
- - npm --production=false install
12
- - npm --production=false update
13
- - npm --production=false prune
14
- jobs:
15
- include:
16
- - stage: test
17
- script:
18
- - npm run test
19
- - stage: release
20
- script: npm run build
21
- before_deploy:
22
- - VPKG=$($(npm bin)/json -f package.json version)
23
- - export VERSION=${VPKG}-prerelease.$(date +%Y%m%d%H%M%S)
24
- - npm --no-git-tag-version version $VERSION
25
- deploy:
26
- - provider: npm
27
- on:
28
- all_branches: true
29
- skip_cleanup: true
30
- email: $NPM_EMAIL
31
- api_key: $NPM_TOKEN
32
- stages:
33
- - test
34
- - name: release
35
- if: branch in (master, develop) and type != pull_request