Skip to content

Commit

Permalink
update publish.yml GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Oct 1, 2023
1 parent 458ad2d commit 56a18c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,15 @@ jobs:
with:
node-version: 16.x
cache: pnpm
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
run: pnpm install

- name: Lint
run: pnpm run lint
working-directory: packages/ember-cli-mirage

- name: Run Tests
run: pnpm run test:ember
working-directory: packages/ember-cli-mirage
- name: Copy .md files
run: cp CHANGELOG.md LICENSE.md README.md packages/ember-cli-mirage/

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: next
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/ember-cli-mirage
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
},
"release-it": {
"hooks": {
"after:bump": "cp CHANGELOG.md LICENSE.md README.md packages/ember-cli-mirage/",
"after:release": "cd packages/ember-cli-mirage-docs && pnpm run deploy"
},
"plugins": {
Expand Down

0 comments on commit 56a18c9

Please sign in to comment.