Skip to content

Commit

Permalink
fix ci workflow for github publish
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Aug 17, 2023
1 parent 1468efa commit e0bd3bd
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,25 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout main branch
run: git checkout main
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- uses: pnpm/[email protected]
- uses: actions/checkout@v2

- name: Setup Node.js 16.x
uses: actions/setup-node@v2
with:
version: latest
- run: pnpm install
- run: pnpm run build
- uses: actions/setup-node@v3
node-version: 16.x

- name: Setup pnpm
uses: pnpm/[email protected]
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@fleetbase'
- run: |
git config user.name github-actions
git config user.email [email protected]
npm version patch
git push
git push --tags
- run: npm publish
version: latest

- name: Install Dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Set up GitHub registry and publish
run: npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e0bd3bd

Please sign in to comment.