Skip to content

Commit e2eb938

Browse files
committed
ci(github): 👷 Setup release workflow for GA (#13)
build(zenroom): ⬆️ Upgrade zenroom version test(github): 👷 Add ENV variables to GA 👷 Setup release workflow for GA (#13)
1 parent 4c5ed04 commit e2eb938

3 files changed

Lines changed: 3919 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
- name: Install dependencies
20+
run: yarn
21+
- run: yarn test
22+
env:
23+
BACKEND_PRIVATE_KEY: Aku7vkJ7K01gQehKELav3qaQfTeTMZKgK+5VhaR3Ui0=
24+
BACKEND_PUBLIC_KEY: BBCQg21VcjsmfTmNsg+I+8m1Cm0neaYONTqRnXUjsJLPa8075IYH+a9w2wRO7rFM1cKmv19Igd7ntDZcUvLq3xI=
25+
BACKEND_PASSWORD: myVerySecretPassword
26+
- run: yarn lint
27+
- name: Release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: npx semantic-release

package.json

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "keypairoom",
2+
"name": "@dyne/keypairoom",
33
"version": "1.0.0",
44
"description": "Keypair library",
55
"main": "lib/index.js",
@@ -8,10 +8,6 @@
88
"format": "prettier --write \"src/**/*.ts\"",
99
"lint": "tslint -p tsconfig.json",
1010
"prepare": "npm run build",
11-
"prepublishOnly": "npm test && npm run lint",
12-
"preversion": "npm run lint",
13-
"version": "npm run format && git add -A src",
14-
"postversion": "git push && git push --tags",
1511
"build": "npm run clean && tsc && npm run copy-files",
1612
"clean": "rm -rf ./lib",
1713
"copy-files": "cp -r ./src/zencode/ ./lib/zencode && cp -r ./src/props/ ./lib/props"
@@ -28,9 +24,11 @@
2824
"license": "MIT",
2925
"dependencies": {
3026
"dotenv": "^8.2.0",
31-
"zenroom": "^2.2.0-e4ecf22"
27+
"zenroom": "^2.2.0-49bb474"
3228
},
3329
"devDependencies": {
30+
"@semantic-release/changelog": "^5.0.1",
31+
"@semantic-release/git": "^9.0.0",
3432
"@types/jest": "^26.0.22",
3533
"jest": "^26.6.3",
3634
"prettier": "^2.2.1",
@@ -41,5 +39,32 @@
4139
},
4240
"files": [
4341
"lib/**/*"
44-
]
42+
],
43+
"plugins": [
44+
"@semantic-release/commit-analyzer",
45+
"@semantic-release/release-notes-generator",
46+
"@semantic-release/changelog",
47+
"@semantic-release/github",
48+
"@semantic-release/npm",
49+
"@semantic-release/git"
50+
],
51+
"release": {
52+
"branches": ["main"],
53+
"prepare": [
54+
"@semantic-release/changelog",
55+
"@semantic-release/npm",
56+
{
57+
"path": "@semantic-release/git",
58+
"assets": [
59+
"package.json",
60+
"yarn.lock",
61+
"CHANGELOG.md"
62+
],
63+
"message": "chore(release): 🚀 ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
64+
}
65+
]
66+
},
67+
"publishConfig": {
68+
"access": "public"
69+
}
4570
}

0 commit comments

Comments
 (0)