Skip to content

Commit

Permalink
Merge pull request #8 from mhillerstrom/github-action
Browse files Browse the repository at this point in the history
GitHub action
  • Loading branch information
mhillerstrom authored Oct 25, 2021
2 parents f30ecc5 + e5e1475 commit 180f84b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- run: lerna bootstrap
- run: lerna test
- run: npm install
- run: npm run test

publish:
needs: test
Expand All @@ -28,26 +28,22 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v2
- run: lerna bootstrap
- run: npm install

# Publish to npm
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: 'https://registry.npmjs.org/'

- run: cd packages/server && npm publish --access public
- run: cd packages/client && npm publish --access public
- run: pm publish --access public

# Publish to GitHub Packages
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: 'https://npm.pkg.github.com/'
scope: '@feathersjs-offline'
- run: cd packages/server && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: cd packages/server && npm publish --access public
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 180f84b

Please sign in to comment.