Skip to content

Commit

Permalink
refactor: package version and release/publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogo Matheus committed Sep 3, 2022
1 parent f66bf68 commit a3e4ffc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 26 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/publishing.yml

This file was deleted.

19 changes: 18 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
release:
name: Create release with artifacts
name: Create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -21,4 +21,21 @@ jobs:
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false

publish:
name: Publish at NPM
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: npm ci
run: npm ci
- name: npm publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rapidreview",
"version": "1.0.0",
"version": "1.0.1",
"description": "A command-line interface (CLI) to support rapid review studies.",
"license": "MIT",
"author": {
Expand Down

0 comments on commit a3e4ffc

Please sign in to comment.