Skip to content

Commit 6124f62

Browse files
fix: reverts the removal of some publish steps (#1225)
fix: reverts the removal of npm-dry-run and the slack notification for approval
1 parent 2af356e commit 6124f62

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/publish-release.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,29 @@ jobs:
3535
./dist
3636
./node_modules/.yarn-state.yml
3737
38+
publish-npm-dry-run:
39+
runs-on: ubuntu-latest
40+
needs: publish-release
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
ref: ${{ github.sha }}
45+
- name: Restore build artifacts
46+
uses: actions/download-artifact@v4
47+
with:
48+
name: publish-release-artifacts-${{ github.sha }}
49+
- name: Dry Run Publish
50+
uses: MetaMask/action-npm-publish@v4
51+
with:
52+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
53+
subteam: S042S7RE4AE # @metamask-npm-publishers
54+
env:
55+
SKIP_PREPACK: true
56+
3857
publish-npm:
58+
environment: npm-publish
3959
needs: publish-release
4060
runs-on: ubuntu-latest
41-
environment: npm-publish
4261
steps:
4362
- uses: actions/checkout@v4
4463
with:
@@ -54,8 +73,4 @@ jobs:
5473
with:
5574
name: publish-release-artifacts-${{ github.sha }}
5675
- name: Publish
57-
uses: MetaMask/action-npm-publish@v4
58-
with:
59-
npm-token: ${{ secrets.NPM_TOKEN }}
60-
env:
61-
SKIP_PREPACK: true
76+
uses: MetaMask/action-npm-publish@v4

0 commit comments

Comments
 (0)