Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "nodejs-builder"

on:
push:
branches-ignore:
- master

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0


- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Configure Git
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Install NPM Dependencies
run: yarn

- name: Deploy
run: |
npm run version
npm run publish
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Database connector wrapper to work with Oracle database from nodejs applications",
"main": "index.js",
"scripts": {
"test": "yarn test"
"test": "yarn test",
"version": "semantic-release",
"publish": "npm publish"
},
"repository": {
"type": "git",
Expand All @@ -23,5 +25,12 @@
"homepage": "https://github.com/softrams/nodejs-oracle-connector#readme",
"dependencies": {
"oracledb": "^4.2.0"
},
"devDependencies": {
"semantic-release": "^17.3.9"
},
"publishConfig": {
"access": "public",
"branches": ["master"]
}
}
Loading