Skip to content

Commit

Permalink
Merge pull request #2585 from miragejs/fix-publish
Browse files Browse the repository at this point in the history
Fix publish workflow
  • Loading branch information
SergeAstapov authored Sep 4, 2024
2 parents ba90cf7 + bdbc704 commit e5691c5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ name: CI Publish

on:
push:
branches:
- main
- master
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand All @@ -17,15 +21,16 @@ jobs:
with:
node-version: 18.x
cache: pnpm
registry-url: https://registry.npmjs.org/
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Copy .md files
run: cp CHANGELOG.md LICENSE.md README.md packages/ember-cli-mirage/

- run: npm publish
- name: pnpm publish
run: pnpm publish --tag=latest --no-git-checks --filter ember-cli-mirage
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/ember-cli-mirage

0 comments on commit e5691c5

Please sign in to comment.