Skip to content

Commit

Permalink
Try to automate publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
onechiporenko committed Mar 17, 2022
1 parent 61be081 commit 318b56a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/release-package.yml
@@ -0,0 +1,34 @@
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 lint
- 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}}
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
@onechiporenko:registry=https://npm.pkg.github.com
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -9,7 +9,7 @@
"mocha",
"cleanup"
],
"repository": "https://github.com/onechiporenko/eslint-plugin-mocha-cleanup",
"repository": "git://github.com/onechiporenko/eslint-plugin-mocha-cleanup.git",
"bugs": "https://github.com/onechiporenko/eslint-plugin-mocha-cleanup/issues",
"homepage": "https://github.com/onechiporenko/eslint-plugin-mocha-cleanup",
"author": "onechiporenko",
Expand Down

0 comments on commit 318b56a

Please sign in to comment.