Skip to content

Commit

Permalink
Fixed Publishing GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Feb 14, 2024
1 parent b8f0842 commit 65b2d90
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Check Out Repo
uses: actions/checkout@v4
- name: Setup Node

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '20.10.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: npm ci && npm run build -ws
# use the node version defined in matrix above
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build -ws
env:
NODE_ENV: production

Expand All @@ -22,7 +28,6 @@ jobs:

- name: Publish package on NPM 📦
run: npm publish
working-directory: ./packages/emmett
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_ENV: production

0 comments on commit 65b2d90

Please sign in to comment.