Skip to content

Commit 65be358

Browse files
committed
feat: Create release to Github
1 parent 49ee9f2 commit 65be358

File tree

3 files changed

+39
-25
lines changed

3 files changed

+39
-25
lines changed

.github/workflows/cd.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CD Core
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-18.04
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '14.x'
18+
registry-url: 'https://registry.npmjs.org'
19+
20+
- name: Download dependencies
21+
run: yarn
22+
23+
- name: Run the tests inside project
24+
run: yarn test
25+
26+
- name: Transpile typescript to javascript
27+
run: yarn build
28+
29+
- name: Automatic GitHub Release
30+
uses: justincy/[email protected]
31+
id: release
32+
33+
- name: Publish to NPM Registry
34+
run: yarn publish --access public
35+
if: steps.release.outputs.released == 'true'
36+
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
name: Deploy

.github/workflows/publish.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@secjs/core",
3-
"version": "1.6.7",
3+
"version": "1.6.8",
44
"license": "MIT",
55
"author": "João Lenon",
66
"repository": "https://github.com/SecJS/Core.git",

0 commit comments

Comments
 (0)