Skip to content

Commit

Permalink
Set up semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Bereziuk committed Oct 3, 2023
1 parent b95aa91 commit 4f64d4c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/npm-publish.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI
on: push
jobs:
test:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12"
- run: npm ci
- run: npm test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
run: npx semantic-release
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "graphql-fields-collector",
"version": "1.0.7",
"version": "0.0.0-development",
"main": "./dist/index.js",
"description": "This package helps to bind client requested grapqhl fields with database queries.",
"scripts": {
"watch": "tsc --watch",
"build": "tsc",
"release": "npm run build && npm publish"
"release": "npm run build && npm publish",
"semantic-release": "semantic-release"
},
"keywords": [
"graphql",
Expand All @@ -21,11 +22,12 @@
"graphql-fields": "^2.0.3"
},
"devDependencies": {
"@types/graphql-fields": "^1.3.4"
"@types/graphql-fields": "^1.3.4",
"semantic-release": "^22.0.5"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bnwebdev/graphql-collector.git"
"url": "https://github.com/bnwebdev/graphql-collector.git"
},
"bugs": {
"url": "https://github.com/bnwebdev/graphql-collector/issues"
Expand Down

0 comments on commit 4f64d4c

Please sign in to comment.