Skip to content

Commit 5ca7a5a

Browse files
author
farfromrefug
committed
chore: sub
1 parent 6a312cc commit 5ca7a5a

File tree

7 files changed

+5073
-6526
lines changed

7 files changed

+5073
-6526
lines changed

.github/workflows/release.yml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: 'release'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
type: choice
8+
default: auto
9+
description: What kind of version upgrade
10+
options:
11+
- auto
12+
- patch
13+
- minor
14+
- major
15+
16+
jobs:
17+
release:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: "0"
24+
submodules: true
25+
26+
- name: setup node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: lts/*
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
33+
- uses: oNaiPs/secrets-to-env-action@v1
34+
with:
35+
secrets: ${{ toJSON(secrets) }}
36+
37+
38+
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
39+
with:
40+
token: '${{ secrets.GITHUB_TOKEN }}'
41+
name: Martin Guillon
42+
43+
44+
- name: install jq
45+
run: sudo apt install jq
46+
47+
- name: Enable CorePack
48+
run: |
49+
corepack enable
50+
yarn config get globalFolder # the yarn command will ensure the correct yarn version is downloaded and installed
51+
52+
- name: Get yarn cache directory path
53+
id: yarn-cache-dir-path
54+
run: echo "::set-output name=dir::$(yarn config get globalFolder)"
55+
56+
- name: Remove package.json resolutions
57+
run: echo "`jq 'delpaths([["resolutions"]])' package.json`" > package.json
58+
59+
- uses: actions/cache@v4
60+
name: Handle node_modules Cache
61+
id: yarn-node_modules # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
62+
with:
63+
path: node_modules
64+
key: ${{ runner.os }}-yarn-node_modules-${{ hashFiles('**/yarn.lock') }}
65+
restore-keys: |
66+
${{ runner.os }}-node_modules-
67+
68+
- uses: actions/cache@v4
69+
if: steps.yarn-node_modules.outputs.cache-hit != 'true'
70+
name: Handle Yarn cache
71+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
72+
with:
73+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
74+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
75+
restore-keys: |
76+
${{ runner.os }}-yarn-
77+
78+
- name: Install deps
79+
if: steps.yarn-node_modules.outputs.cache-hit != 'true'
80+
uses: bahmutov/npm-install@v1
81+
with:
82+
install-command: yarn install --silent
83+
env:
84+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
85+
86+
- name: run setup
87+
run: |
88+
npm run setup
89+
90+
- name: "NPM Identity"
91+
env:
92+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
93+
run: |
94+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
95+
96+
- name: publish auto
97+
if: github.event.inputs.release_type == 'auto'
98+
run: |
99+
npm run publish -- --force-publish --no-verify-access --no-private --no-commit-hooks --yes
100+
env:
101+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
102+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104+
105+
- name: publish
106+
if: github.event.inputs.release_type != 'auto'
107+
run: |
108+
npm run publish -- --force-publish --no-verify-access --no-private --no-commit-hooks --yes --bump ${{ github.event.inputs.release_type }}
109+
env:
110+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
111+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ packages/**/*js.map
5454
packages/**/*js
5555
packages/angular
5656
packages/typings
57-
!packages/**/angular/*.json
57+
packages/**/angular/*.json
5858
packages/**/*.ngsummary.json
5959
packages/**/*.metadata.json
6060

61+
.vscode/settings.json
62+
6163
/blueprint.md

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->This monorepo contains multiple packages:<br><br><details>
1+
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->This monorepo contains multiple packages:<br><br>
2+
<details open>
23
<summary><b>image</b></summary>
4+
35
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
46
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
57
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -764,8 +766,10 @@ One easy solution is t modify `~/.gitconfig` and add
764766
## Questions
765767

766768
If you have any questions/issues/comments please feel free to create an issue or start a conversation in the [NativeScript Community Discord](https://nativescript.org/discord).
767-
</details><details>
769+
</details>
770+
<details open>
768771
<summary><b>image-colorfilter</b></summary>
772+
769773
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
770774
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
771775
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -982,8 +986,10 @@ One easy solution is t modify `~/.gitconfig` and add
982986
## Questions
983987

984988
If you have any questions/issues/comments please feel free to create an issue or start a conversation in the [NativeScript Community Discord](https://nativescript.org/discord).
985-
</details><details>
989+
</details>
990+
<details open>
986991
<summary><b>zoomimage</b></summary>
992+
987993
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️-->
988994
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
989995
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

lerna.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
"useWorkspaces": true,
99
"command": {
1010
"publish": {
11-
"cleanupTempFiles": true,
12-
"removePackageFields": [
13-
"devDependencies",
14-
"scripts"
15-
]
11+
"cleanupTempFiles": true
1612
}
1713
},
1814
"npmClientArgs": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"update": "node ./tools/update.js",
3737
"watch": "npm run tsc -- -w",
3838
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
39-
"doc": "node tools/builddoc.mjs",
39+
"doc": "node tools/builddoc.js",
4040
"commit_readme_doc_changes": "git add docs/** *.md ; git commit -m \"readme/doc\" ; echo \"commit readme doc done\""
4141
},
4242
"commitlint": {

0 commit comments

Comments
 (0)