Skip to content

Commit

Permalink
ci(github): 👷 Setup release workflow for GA (#13)
Browse files Browse the repository at this point in the history
build(zenroom): ⬆️  Upgrade zenroom version

test(github): 👷  Add ENV variables to GA

👷  Setup release workflow for GA (#13)
  • Loading branch information
puria committed Apr 19, 2021
1 parent 4c5ed04 commit e2eb938
Show file tree
Hide file tree
Showing 3 changed files with 3,919 additions and 7 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn
- run: yarn test
env:
BACKEND_PRIVATE_KEY: Aku7vkJ7K01gQehKELav3qaQfTeTMZKgK+5VhaR3Ui0=
BACKEND_PUBLIC_KEY: BBCQg21VcjsmfTmNsg+I+8m1Cm0neaYONTqRnXUjsJLPa8075IYH+a9w2wRO7rFM1cKmv19Igd7ntDZcUvLq3xI=
BACKEND_PASSWORD: myVerySecretPassword
- run: yarn lint
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
39 changes: 32 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "keypairoom",
"name": "@dyne/keypairoom",
"version": "1.0.0",
"description": "Keypair library",
"main": "lib/index.js",
Expand All @@ -8,10 +8,6 @@
"format": "prettier --write \"src/**/*.ts\"",
"lint": "tslint -p tsconfig.json",
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run lint",
"preversion": "npm run lint",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags",
"build": "npm run clean && tsc && npm run copy-files",
"clean": "rm -rf ./lib",
"copy-files": "cp -r ./src/zencode/ ./lib/zencode && cp -r ./src/props/ ./lib/props"
Expand All @@ -28,9 +24,11 @@
"license": "MIT",
"dependencies": {
"dotenv": "^8.2.0",
"zenroom": "^2.2.0-e4ecf22"
"zenroom": "^2.2.0-49bb474"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/jest": "^26.0.22",
"jest": "^26.6.3",
"prettier": "^2.2.1",
Expand All @@ -41,5 +39,32 @@
},
"files": [
"lib/**/*"
]
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
"@semantic-release/npm",
"@semantic-release/git"
],
"release": {
"branches": ["main"],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": [
"package.json",
"yarn.lock",
"CHANGELOG.md"
],
"message": "chore(release): 🚀 ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
},
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit e2eb938

Please sign in to comment.