Skip to content

Commit

Permalink
feat: Create release to Github
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Aug 6, 2021
1 parent 49ee9f2 commit 65be358
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 25 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CD Core

on:
push:
branches:
- master

jobs:
build:

runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'

- name: Download dependencies
run: yarn

- name: Run the tests inside project
run: yarn test

- name: Transpile typescript to javascript
run: yarn build

- name: Automatic GitHub Release
uses: justincy/[email protected]
id: release

- name: Publish to NPM Registry
run: yarn publish --access public
if: steps.release.outputs.released == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Deploy
24 changes: 0 additions & 24 deletions .github/workflows/publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@secjs/core",
"version": "1.6.7",
"version": "1.6.8",
"license": "MIT",
"author": "João Lenon",
"repository": "https://github.com/SecJS/Core.git",
Expand Down

0 comments on commit 65be358

Please sign in to comment.