Skip to content

Commit 101fbbb

Browse files
Merge pull request #117 from deriv-com/ako/put-back-release-automation
Ako/ use the semantic release automation
2 parents af5eed9 + 1af90c4 commit 101fbbb

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/publish_npm_package.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Release
22
on:
33
release:
44
types: [published]
5+
push:
6+
branches: [main]
57

68
permissions:
79
contents: read # for checkout
@@ -25,16 +27,16 @@ jobs:
2527
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
2628
with:
2729
node-version: '20'
28-
- name: Update to latest npm (temporary fix for audit below)
29-
run: npm install --global npm
3030
- name: Install dependencies
3131
run: npm clean-install
3232
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
3333
run: npm audit signatures
34-
- name: Publish
34+
- name: Prepublish
35+
run: npm run prepublish
36+
- name: Release
37+
if: success()
3538
env:
36-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37-
run: |
38-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
39-
npm publish --access public
40-
shell: bash
39+
CI: true
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}
42+
run: npx semantic-release

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@deriv-com/ui",
33
"private": false,
4-
"version": "1.10.7",
4+
"version": "0.0.0-development",
55
"type": "module",
66
"main": "dist/main.js",
77
"files": [

0 commit comments

Comments
 (0)