Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit 1665065

Browse files
committed
ci: testing gitlab actions
1 parent 6a813a9 commit 1665065

File tree

4 files changed

+3212
-65
lines changed

4 files changed

+3212
-65
lines changed

.github/workflows/master-workflow.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
name: Build
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
13+
- name: Checking out project
1414
uses: actions/checkout@v2
15-
- name: Setup Node.js
15+
- name: Setting up node
1616
uses: actions/setup-node@v1
1717
with:
1818
node-version: 12
@@ -33,17 +33,20 @@ jobs:
3333
name: Release
3434
runs-on: ubuntu-latest
3535
steps:
36-
- name: Setup Node.js
36+
- name: Checking out project
37+
uses: actions/checkout@v2
38+
- name: Setting up node
3739
uses: actions/setup-node@v1
3840
with:
3941
node-version: 12
40-
- name: Download dist
42+
- name: Installing dependencies
43+
run: yarn install
44+
- name: Downloading dist
4145
uses: actions/download-artifact@v1
4246
with:
4347
name: dist
4448
- name: Release
4549
env:
4650
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4751
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48-
run: npx semantic-release --dry-run
49-
working-directory: ./dist
52+
run: yarn release

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"scripts": {
3333
"build": "rm -rf dist && rollup -c",
3434
"build:copy": "cp package.json dist/ && cp README.md dist/ && cp LICENSE dist/ && cp lib/index.d.ts dist/",
35-
"deploy": "yarn build && yarn build:copy && cd dist && yarn publish && cd ..",
35+
"release": "yarn semantic-release --dry-run",
3636
"lint": "eslint --fix \"lib/**/*.js\" *.js",
3737
"test": "jest",
3838
"report-coverage": "cat ./coverage/lcov.info | coveralls"
@@ -50,6 +50,10 @@
5050
"@babel/preset-react": "^7.0.0",
5151
"@commitlint/cli": "^7.2.1",
5252
"@commitlint/config-conventional": "^8.0.0",
53+
"@semantic-release/commit-analyzer": "^8.0.1",
54+
"@semantic-release/github": "^7.0.5",
55+
"@semantic-release/npm": "^7.0.5",
56+
"@semantic-release/release-notes-generator": "^9.0.1",
5357
"babel-core": "^7.0.0-bridge.0",
5458
"babel-eslint": "^10.0.1",
5559
"babel-jest": "^24.8.0",
@@ -73,7 +77,8 @@
7377
"rollup": "^1.16.2",
7478
"rollup-plugin-babel": "^4.0.3",
7579
"rollup-plugin-replace": "^2.1.0",
76-
"rollup-plugin-terser": "^3.0.0"
80+
"rollup-plugin-terser": "^3.0.0",
81+
"semantic-release": "^17.0.4"
7782
},
7883
"husky": {
7984
"hooks": {

release.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
module.exports = {
3+
plugins: [
4+
'@semantic-release/commit-analyzer',
5+
'@semantic-release/release-notes-generator',
6+
['@semantic-release/npm', { pkgRoot: 'dist' }],
7+
'@semantic-release/github'
8+
]
9+
}

0 commit comments

Comments
 (0)