Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix publish workflow #2585

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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