Skip to content

Commit

Permalink
Workflow to publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
Alesia Vysotskaya committed Aug 24, 2021
1 parent 2f20b8e commit 3f59e68
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 99 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/npm_publish.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
31 changes: 0 additions & 31 deletions .github/workflows/version_bump_minor.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/version_bump_patch.yml

This file was deleted.

17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gherkin-lint-ts",
"version": "0.0.1",
"version": "0.1.0",
"description": "Gherkin features linter written in Typescript",
"main": "lib/src/index.js",
"bin": {
Expand All @@ -22,7 +22,10 @@
],
"repository": {
"type": "git",
"url": "https://github.com/avysotskaya/gherkin-lint.git"
"url": "https://github.com/avysotskaya/gherkin-lint-ts.git"
},
"publishConfig": {
"@avysotskaya:registry": "https://npm.pkg.github.com"
},
"dependencies": {
"@types/glob": "7.1.4",
Expand Down Expand Up @@ -73,5 +76,13 @@
"demo": "ts-node ./src/index.ts -c ./demo/configs/.gherkin-lintrc.json ./demo",
"demo-js": "node ./lib/src/index.js -c demo/configs/.gherkin-lintrc.json demo/**"
},
"license": "MIT"
"license": "MIT",
"bugs": {
"url": "https://github.com/avysotskaya/gherkin-lint-ts/issues"
},
"homepage": "https://github.com/avysotskaya/gherkin-lint-ts#readme",
"directories": {
"lib": "lib"
},
"author": "Alesia Vysotskaya"
}

0 comments on commit 3f59e68

Please sign in to comment.