Skip to content

Commit

Permalink
Setting npm registry url for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalFlow authored Dec 17, 2020
1 parent 5b865fc commit 2fd424e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,17 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- name: Branch name
if: startsWith(github.ref, 'refs/tags/')
id: branch_name
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Bump version number locally on tag
if: startsWith(github.ref, 'refs/tags/')
run: npm version --no-git-tag-version $SOURCE_TAG
Expand Down

0 comments on commit 2fd424e

Please sign in to comment.