Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez authored Dec 5, 2023
1 parent 0a03afb commit f3ecfcb
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,7 @@ on:

jobs:
publish:
runs-on: [ubuntu-latest]
env:
CI: true

steps:
- name: 🛎 Checkout
uses: actions/checkout@v4
- name: 📦 Cache
uses: actions/cache@v3
with:
path: ~/.npm
key: node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
node-
- name: 🏗 npm build
run: |
npm ci
npm run build
- name: 🍱 Publish
uses: mikeal/merge-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: unosquare/bump-npm-version/.github/workflows/publish-public.yml@master
secrets:
github-token: ${{ secrets.GPR_ACCESS_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}

0 comments on commit f3ecfcb

Please sign in to comment.