Skip to content

Commit

Permalink
fix: Checking out main branch before npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
alesancor1 committed Sep 24, 2021
1 parent 534c4f3 commit 0caff7f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 81 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/nodejs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,19 @@ jobs:
pr_assignee: "alesancor1"
pr_label: "auto-pr"
github_token: ${{ secrets.GITHUB_TOKEN }}

npmReleaseMain:
name: (Main) Publish new release to npm registry
needs: githubRelease
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: 'main'
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20 changes: 0 additions & 20 deletions .github/workflows/release.yaml

This file was deleted.

59 changes: 0 additions & 59 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "governify-commons",
"version": "1.17.2",
"version": "1.17.1",
"description": "Governify Commons used for Governify microservices",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 0caff7f

Please sign in to comment.