scratch-paint 2.1.21 → 2.1.22
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,64 @@
|
|
|
1
|
+
name: Scratch Paint CI-CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request: # Runs whenever a pull request is created or updated
|
|
5
|
+
push: # Runs whenever a commit is pushed to the repository...
|
|
6
|
+
branches: [master, develop, beta, hotfix/*] # ...on any of these branches
|
|
7
|
+
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
pages: write
|
|
16
|
+
issues: write
|
|
17
|
+
pull-requests: write
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
ci-cd:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
env:
|
|
23
|
+
TRIGGER_DEPLOY: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/hotfix') || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/beta') }}
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: wagoid/commitlint-github-action@v5
|
|
27
|
+
if: github.event_name == 'pull_request'
|
|
28
|
+
- uses: actions/setup-node@v3
|
|
29
|
+
with:
|
|
30
|
+
cache: "npm"
|
|
31
|
+
node-version-file: ".nvmrc"
|
|
32
|
+
- name: Info
|
|
33
|
+
run: |
|
|
34
|
+
cat <<EOF
|
|
35
|
+
Node version: $(node --version)
|
|
36
|
+
NPM version: $(npm --version)
|
|
37
|
+
GitHub ref: ${{ github.ref }}
|
|
38
|
+
GitHub head ref: ${{ github.head_ref }}
|
|
39
|
+
EOF
|
|
40
|
+
- name: Install NPM Dependencies
|
|
41
|
+
run: |
|
|
42
|
+
npm ci
|
|
43
|
+
mkdir -p ./test/results
|
|
44
|
+
- name: Lint and Test
|
|
45
|
+
run: npm run test
|
|
46
|
+
- name: Build
|
|
47
|
+
run: npm run build
|
|
48
|
+
env:
|
|
49
|
+
NODE_ENV: production
|
|
50
|
+
- name: Deploy playground to GitHub Pages
|
|
51
|
+
if: ${{ env.TRIGGER_DEPLOY == 'true'}}
|
|
52
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
53
|
+
with:
|
|
54
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
55
|
+
publish_dir: playground
|
|
56
|
+
full_commit_message: "Build for ${{ github.sha }} ${{ github.event.head_commit.message }}"
|
|
57
|
+
- name: Semantic Release
|
|
58
|
+
if: ${{ env.TRIGGER_DEPLOY == 'true'}}
|
|
59
|
+
env:
|
|
60
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
61
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
62
|
+
run: npx --no -- semantic-release
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Update i18n
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: 0 0 * * * # daily at midnight UTC = 7-8pm US Eastern
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: '${{ github.workflow }}'
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
update-tx:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
ref: 'develop'
|
|
22
|
+
- uses: actions/setup-node@v3
|
|
23
|
+
with:
|
|
24
|
+
cache: 'npm'
|
|
25
|
+
node-version-file: '.nvmrc'
|
|
26
|
+
- name: Info
|
|
27
|
+
run: |
|
|
28
|
+
cat <<EOF
|
|
29
|
+
Node version: $(node --version)
|
|
30
|
+
NPM version: $(npm --version)
|
|
31
|
+
GitHub ref: ${{ github.ref }}
|
|
32
|
+
GitHub head ref: ${{ github.head_ref }}
|
|
33
|
+
EOF
|
|
34
|
+
- name: Setup
|
|
35
|
+
run: npm --production=false ci
|
|
36
|
+
- name: Extract translations
|
|
37
|
+
run: npm run i18n:src
|
|
38
|
+
- name: Push translations
|
|
39
|
+
env:
|
|
40
|
+
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
|
41
|
+
run: npm run i18n:push
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v16
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.1.22](https://github.com/LLK/scratch-paint/compare/v2.1.21...v2.1.22) (2023-10-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** update dependency scratch-l10n to v3.16.20231013034330 ([#2250](https://github.com/LLK/scratch-paint/issues/2250)) ([4c2a732](https://github.com/LLK/scratch-paint/commit/4c2a73271954b5ff939f06edcc5352f485e178c3))
|
|
12
|
+
|
|
6
13
|
## [2.1.21](https://github.com/LLK/scratch-paint/compare/v2.1.20...v2.1.21) (2023-10-03)
|
|
7
14
|
|
|
8
15
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scratch-paint",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.22",
|
|
4
4
|
"description": "Graphical User Interface for the Scratch 3.0 paint editor, which is used to make and edit sprites for use in projects.",
|
|
5
5
|
"main": "./dist/scratch-paint.js",
|
|
6
6
|
"browser": "./src/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "npm run clean && webpack --progress --colors --bail",
|
|
9
9
|
"clean": "rimraf ./dist && mkdirp dist && rimraf ./playground && mkdirp playground",
|
|
10
|
-
"deploy": "touch playground/.nojekyll && gh-pages -t -d playground -m \"[skip ci] Build for $(git log --pretty=format:%H -n1)\"",
|
|
11
10
|
"i18n:push": "tx-push-src scratch-editor paint-editor ./translations/en.json",
|
|
12
11
|
"i18n:src": "rimraf ./translations/messages && babel src > tmp.js && rimraf tmp.js && ./scripts/build-i18n-source.js ./translations/messages/ ./translations/",
|
|
13
12
|
"lint": "eslint . --ext .js,.jsx",
|
|
14
|
-
"prepare": "husky install",
|
|
15
13
|
"start": "webpack-dev-server",
|
|
16
|
-
"test": "npm run lint && npm run unit
|
|
14
|
+
"test": "npm run lint && npm run unit",
|
|
17
15
|
"unit": "jest --reporters=default",
|
|
18
16
|
"watch": "webpack --progress --colors --watch"
|
|
19
17
|
},
|
|
@@ -95,7 +93,7 @@
|
|
|
95
93
|
"redux-throttle": "0.1.1",
|
|
96
94
|
"regenerator-runtime": "0.13.9",
|
|
97
95
|
"rimraf": "2.7.1",
|
|
98
|
-
"scratch-l10n": "3.16.
|
|
96
|
+
"scratch-l10n": "3.16.20231013034330",
|
|
99
97
|
"scratch-render-fonts": "1.0.0-prerelease.20221102164332",
|
|
100
98
|
"scratch-semantic-release-config": "1.0.8",
|
|
101
99
|
"semantic-release": "19.0.5",
|
|
Binary file
|