Skip to content

Commit

Permalink
added Github Packages to publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ammichael committed Jul 19, 2020
1 parent b32d17c commit 778d0d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,27 @@ on:
jobs:
publish:
runs-on: ubuntu-latest

name: Publish to npm
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: 13
registry-url: https://registry.npmjs.org/
node-version: '14.x'
registry-url: 'https://registry.npmjs.org/'
- name: Install
run: yarn install
run: npm install
# Publish to npm
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v1
with:
registry-url: 'https://npm.pkg.github.com'
scope: '@platformbuilders'
# Publish to GitHub Packages
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platformbuilders/helpers",
"version": "0.2.1",
"version": "0.2.2",
"description": "Platfom builders helpers library",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 778d0d9

Please sign in to comment.