Skip to content

Commit 437b2a3

Browse files
authored
ci: run npm publish instead of semantict release npm (#28)
1 parent 780084d commit 437b2a3

2 files changed

Lines changed: 5 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
request_approval:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Send Deploy Request
16-
uses: Basis-Theory/github-actions/deploy-slack-action@master
17-
with:
18-
slack-api-token: ${{ secrets.SLACK_DUCKBOT_API_KEY }}
19-
channel: ${{ vars.SLACK_DUCKBOT_PRODUCT_APPROVAL_CHANNEL }}
20-
mention-person: ${{ vars.SLACK_DUCKBOT_PRODUCT_APPROVER }}
21-
status: "request"
22-
2312
build-release:
2413
runs-on: ${{ matrix.os }}
2514
environment: PROD
@@ -45,15 +34,12 @@ jobs:
4534
uses: actions/setup-node@v4
4635
with:
4736
node-version: ${{ matrix.node }}
48-
registry-url: "https://registry.npmjs.org"
4937

5038
- name: Update npm
5139
run: npm install -g npm@latest
5240

53-
- name: Install deps (with cache)
54-
uses: bahmutov/npm-install@v1
55-
with:
56-
install-command: yarn --immutable --no-progress --ignore-scripts
41+
- name: Install deps
42+
run: yarn --immutable --no-progress --ignore-scripts
5743

5844
- name: Build
5945
run: make build

.releaserc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
"@semantic-release/release-notes-generator",
1818
"@semantic-release/changelog",
1919
[
20-
"@semantic-release/npm",
20+
"@semantic-release/exec",
2121
{
22-
"pkgRoot": "dist"
22+
"prepareCmd": "cd dist && npm version ${nextRelease.version} --no-git-tag-version",
23+
"publishCmd": "cd dist && npm publish --provenance"
2324
}
2425
],
2526
"@semantic-release/github",

0 commit comments

Comments
 (0)