Fix publish workflow #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Publish | |
on: | |
# push: | |
# tags: | |
# - '*' | |
pull_request: | |
paths: | |
- '.github/workflows/publish.yml' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Copy .md files | |
run: cp CHANGELOG.md LICENSE.md README.md packages/ember-cli-mirage/ | |
- name: pnpm publish | |
run: pnpm publish --tag=latest --no-git-checks --filter ember-cli-mirage | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |