envilder 0.3.1 → 0.3.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.
- package/.github/workflows/publish.yml +19 -17
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: 🍄 Power-Up Publisher
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
@@ -9,37 +9,37 @@ on:
|
|
|
9
9
|
- 'package.json'
|
|
10
10
|
- '.github/workflows/publish.yml'
|
|
11
11
|
|
|
12
|
+
# Add explicit permissions for the GITHUB_TOKEN
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
packages: write
|
|
16
|
+
|
|
12
17
|
jobs:
|
|
13
18
|
publish:
|
|
14
19
|
runs-on: ubuntu-latest
|
|
15
20
|
steps:
|
|
16
|
-
- name: Checkout repository
|
|
21
|
+
- name: 🧱 Checkout repository
|
|
17
22
|
uses: actions/checkout@v3
|
|
18
23
|
with:
|
|
19
24
|
fetch-depth: 0
|
|
20
25
|
|
|
21
|
-
- name: Setup Node.js
|
|
26
|
+
- name: 🔧 Setup Node.js
|
|
22
27
|
uses: actions/setup-node@v3
|
|
23
28
|
with:
|
|
24
29
|
node-version: '20'
|
|
25
30
|
registry-url: 'https://registry.npmjs.org'
|
|
26
31
|
cache: 'yarn'
|
|
27
32
|
|
|
28
|
-
- name: Install dependencies
|
|
33
|
+
- name: 🌟 Install dependencies
|
|
29
34
|
run: yarn install --frozen-lockfile
|
|
30
35
|
|
|
31
|
-
- name: Lint
|
|
32
|
-
run: yarn lint
|
|
33
|
-
|
|
34
|
-
- name: Security Check
|
|
35
|
-
run: |
|
|
36
|
-
npm install -g @secretlint/secretlint-rule-preset-recommend secretlint
|
|
37
|
-
secretlint "**/*" --secretlintrc .secretlintrc.json
|
|
36
|
+
- name: 🔥 Lint
|
|
37
|
+
run: yarn lint
|
|
38
38
|
|
|
39
|
-
- name: Run tests
|
|
39
|
+
- name: 🍄 Run tests
|
|
40
40
|
run: yarn test
|
|
41
41
|
|
|
42
|
-
- name: Detect version bump
|
|
42
|
+
- name: 👑 Detect version bump
|
|
43
43
|
id: version-check
|
|
44
44
|
run: |
|
|
45
45
|
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
@@ -58,21 +58,23 @@ jobs:
|
|
|
58
58
|
echo "version_changed=false" >> $GITHUB_OUTPUT
|
|
59
59
|
fi
|
|
60
60
|
|
|
61
|
-
- name: Build package
|
|
61
|
+
- name: 🔨 Build package
|
|
62
62
|
if: steps.version-check.outputs.version_changed == 'true'
|
|
63
63
|
run: yarn build
|
|
64
64
|
|
|
65
|
-
- name: Publish to npm
|
|
65
|
+
- name: 🚩 Publish to npm
|
|
66
66
|
if: steps.version-check.outputs.version_changed == 'true'
|
|
67
67
|
run: yarn publish --non-interactive
|
|
68
68
|
env:
|
|
69
69
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
70
70
|
|
|
71
|
-
- name: Create GitHub Release
|
|
71
|
+
- name: 🏰 Create GitHub Release
|
|
72
72
|
if: steps.version-check.outputs.version_changed == 'true'
|
|
73
73
|
uses: ncipollo/release-action@v1
|
|
74
74
|
with:
|
|
75
75
|
tag: "v${{ steps.version-check.outputs.current_version }}"
|
|
76
|
-
name: "Release v${{ steps.version-check.outputs.current_version }}"
|
|
76
|
+
name: "🍄 Level Up Release v${{ steps.version-check.outputs.current_version }}"
|
|
77
77
|
generateReleaseNotes: true
|
|
78
78
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
79
|
+
makeLatest: legacy
|
|
80
|
+
replacesArtifacts: true
|
package/package.json
CHANGED