File tree Expand file tree Collapse file tree 14 files changed +121
-17
lines changed Expand file tree Collapse file tree 14 files changed +121
-17
lines changed Original file line number Diff line number Diff line change 1
1
# Lines starting with '#' are comments.
2
2
# Each line is a file pattern followed by one or more owners.
3
3
4
- * @ MetaMask/devs
4
+ * @ MetaMask/shared-libraries-engineers
Original file line number Diff line number Diff line change
1
+ name : ' MetaMask Security Code Scanner'
2
+
3
+ on :
4
+ push :
5
+ branches : ['main']
6
+ pull_request :
7
+ branches : ['main']
8
+
9
+ jobs :
10
+ run-security-scan :
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ actions : read
14
+ contents : read
15
+ security-events : write
16
+ steps :
17
+ - name : MetaMask Security Code Scanner
18
+ uses : MetaMask/Security-Code-Scanner@main
19
+ with :
20
+ repo : ${{ github.repository }}
21
+ paths_ignored : |
22
+ .storybook/
23
+ '**/__snapshots__/'
24
+ '**/*.snap'
25
+ '**/*.stories.js'
26
+ '**/*.stories.tsx'
27
+ '**/*.test.browser.ts*'
28
+ '**/*.test.js*'
29
+ '**/*.test.ts*'
30
+ '**/fixtures/'
31
+ '**/jest.config.js'
32
+ '**/jest.environment.js'
33
+ '**/mocks/'
34
+ '**/test*/'
35
+ docs/
36
+ e2e/
37
+ merged-packages/
38
+ node_modules
39
+ storybook/
40
+ test*/
41
+ rules_excluded : example
42
+ project_metrics_token : ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }}
43
+ slack_webhook : ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ name: shellcheck
3
3
permissions :
4
4
checks : write
5
5
6
- on : [push]
6
+ on :
7
+ push :
8
+ branches : [main]
9
+ pull_request :
7
10
8
11
jobs :
9
12
lint :
Original file line number Diff line number Diff line change 1
1
name : test-monorepo
2
- on : [push]
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ pull_request :
3
6
jobs :
4
7
# test npm publish dry-run
5
8
checkout_publish_skunkworks_dry_run :
Original file line number Diff line number Diff line change 1
1
name : test-polyrepo
2
- on : [push]
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ pull_request :
3
6
jobs :
4
7
# test npm publish dry-run
5
8
checkout_publish_controllers_dry_run :
Original file line number Diff line number Diff line change 1
1
name : test
2
- on : [push]
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ pull_request :
3
6
jobs :
4
7
test :
5
8
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 5.0.0]
10
+ ### Changed
11
+ - ** BREAKING:** Disallow publishing packages with version 0.0.0 ([ #63 ] ( https://github.com/MetaMask/action-npm-publish/pull/63 ) )
12
+
13
+ ### Fixed
14
+ - Fix Yarn 4 compatibility ([ #65 ] ( https://github.com/MetaMask/action-npm-publish/pull/65 ) )
15
+
9
16
## [ 4.0.3]
10
17
### Fixed
11
18
- Fix Slack announcement for public default channel ([ #73 ] ( https://github.com/MetaMask/action-npm-publish/pull/73 ) )
@@ -84,7 +91,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
84
91
### Changed
85
92
- Initial release ([ #1 ] ( https://github.com/MetaMask/action-npm-publish/pull/1 ) )
86
93
87
- [ Unreleased ] : https://github.com/MetaMask/action-npm-publish/compare/v4.0.3...HEAD
94
+ [ Unreleased ] : https://github.com/MetaMask/action-npm-publish/compare/v5.0.0...HEAD
95
+ [ 5.0.0 ] : https://github.com/MetaMask/action-npm-publish/compare/v4.0.3...v5.0.0
88
96
[ 4.0.3 ] : https://github.com/MetaMask/action-npm-publish/compare/v4.0.2...v4.0.3
89
97
[ 4.0.2 ] : https://github.com/MetaMask/action-npm-publish/compare/v4.0.1...v4.0.2
90
98
[ 4.0.1 ] : https://github.com/MetaMask/action-npm-publish/compare/v4.0.0...v4.0.1
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ We've added the ability to customize the message posted in Slack and those optio
55
55
56
56
- ` icon-url`
57
57
- ` username`
58
- - ` target-name `
58
+ - ` subteam `
59
59
- ` channel`
60
60
61
61
example :
@@ -67,7 +67,7 @@ example:
67
67
icon-url: https://ricky.codes/me.jpg
68
68
username: rickybot
69
69
# re subteam, see: https://api.slack.com/reference/surfaces/formatting#mentioning-groups
70
- subteam: subteam: S042S7RE4AE # @metamask-npm-publishers
70
+ subteam: S042S7RE4AE # @metamask-npm-publishers
71
71
channel: dev-channel
72
72
` ` `
73
73
@@ -87,5 +87,5 @@ You can read more about these option in the [API](#API) section below
87
87
88
88
- **`icon-url`** _(optional)_. Url to the avatar used for the bot in Slack. If not set this defaults to the avatar in this repository.
89
89
- **`username`** _(optional)_. The name of the bot as it appears on Slack. If not set this defaults to `MetaMask bot`.
90
- - **`target-name `** _(optional)_. Use this if you want to ping an individual or subset of individuals on Slack using `@`.
90
+ - **`subteam `** _(optional)_. Use this if you want to ping a subteam of individuals on Slack using `@`.
91
91
- **`channel`** _(optional)_. Use this if you want to post to a channel other than the default: `metamask-dev`.
Original file line number Diff line number Diff line change 35
35
env :
36
36
YARN_NPM_AUTH_TOKEN : ${{ inputs.npm-token }}
37
37
PUBLISH_NPM_TAG : ${{ inputs.npm-tag }}
38
+ - id : install-pkdiff
39
+ shell : bash
40
+ run : npm i -g pkdiff
41
+ - id : generate-report
42
+ shell : bash
43
+ if : inputs.npm-token == ''
44
+ run : ${{ github.action_path }}/scripts/report.sh
45
+ - id : upload-artifact
46
+ if : inputs.npm-token == ''
47
+ uses : actions/upload-artifact@v4
48
+ with :
49
+ path : |
50
+ /tmp/*.tgz
51
+ /tmp/*.html
38
52
- id : name-version
39
53
shell : bash
40
54
if : inputs.slack-webhook-url != ''
Original file line number Diff line number Diff line change 15
15
"url" : " https://github.com/MetaMask/action-npm-publish/issues"
16
16
},
17
17
"homepage" : " https://github.com/MetaMask/action-npm-publish#readme" ,
18
- "version" : " 4 .0.3 " ,
18
+ "version" : " 5 .0.0 " ,
19
19
"main" : " index.js" ,
20
20
"directories" : {
21
21
"test" : " test"
You can’t perform that action at this time.
0 commit comments