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

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,89 @@
1
+ version: 2.1
2
+
3
+ executors:
4
+ default-executor:
5
+ docker:
6
+ - image: "cimg/node:8.17.0"
7
+ working_directory: ~/project
8
+ resource_class: medium
9
+
10
+ commands:
11
+ setup:
12
+ steps:
13
+ - run:
14
+ name: Setup
15
+ command: |
16
+ npm install
17
+ npm update
18
+ npm prune
19
+ test:
20
+ steps:
21
+ - run:
22
+ name: Test
23
+ command: |
24
+ npm run test
25
+ setup_deploy:
26
+ steps:
27
+ - run:
28
+ name: Setup Deploy
29
+ command: |
30
+ echo "export NPM_TAG=latest" >> $BASH_ENV
31
+ echo "export NODE_ENV=production" >> $BASH_ENV
32
+ echo "export RELEASE_TIMESTAMP=$(date +'%Y%m%d%H%M%S')" >> $BASH_ENV
33
+ npm run build
34
+ VPKG=$($(npm bin)/json -f package.json version)
35
+ echo "export VERSION=${VPKG}-prerelease.$(date +%Y%m%d%H%M%S)" >> $BASH_ENV
36
+
37
+ deploy:
38
+ steps:
39
+ - run:
40
+ name: Deploy
41
+ command: |
42
+ npm --no-git-tag-version version $VERSION
43
+ npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
44
+ npm publish
45
+
46
+ jobs:
47
+ build-and-test:
48
+ executor: default-executor
49
+ steps:
50
+ - checkout
51
+ - setup
52
+ - test
53
+ - persist_to_workspace:
54
+ root: ~/project
55
+ paths: .
56
+ deploy:
57
+ executor: default-executor
58
+ steps:
59
+ - attach_workspace:
60
+ at: ~/project
61
+ - setup_deploy
62
+ - deploy
63
+
64
+ workflows:
65
+ build-and-test-workflow:
66
+ when:
67
+ not:
68
+ or:
69
+ - equal: [ master, <<pipeline.git.branch>> ]
70
+ - equal: [ develop, <<pipeline.git.branch>> ]
71
+ - matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
72
+ - matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
73
+ jobs:
74
+ - build-and-test
75
+
76
+ deploy-workflow:
77
+ when:
78
+ or:
79
+ - equal: [ master, <<pipeline.git.branch>> ]
80
+ - equal: [ develop, <<pipeline.git.branch>> ]
81
+ - matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
82
+ - matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
83
+ jobs:
84
+ - build-and-test
85
+ - deploy:
86
+ context:
87
+ - scratch-npm-creds
88
+ requires:
89
+ - build-and-test
package/README.md CHANGED
@@ -1,2 +1,4 @@
1
1
  # scratch-render-fonts
2
2
  Fonts for Scratch SVG rendering
3
+
4
+ [![CircleCI](https://circleci.com/gh/LLK/scratch-render-fonts/tree/master.svg?style=shield&circle-token=786988d80057cc1ac25c39fb4f5754d736106fa7)](https://circleci.com/gh/LLK/scratch-render-fonts?branch=master)
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-prerelease.20221102164332",
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