Skip to content

Commit

Permalink
Merge pull request #1135 from emberjs/kg-add-ci-publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
kategengler authored Sep 12, 2023
2 parents 5ea254c + 09fc8f6 commit 8289701
Show file tree
Hide file tree
Showing 15 changed files with 670 additions and 517 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- main
- 'v*'
pull_request:
schedule:
Expand Down Expand Up @@ -47,7 +48,7 @@ jobs:

steps:
- uses: wyvox/action@v1
with:
with:
pnpm-args: '--no-lockfile'
- run: pnpm test:ember
working-directory: test-app
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Push dist
name: Publish to branch

on:
push:
Expand All @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: wyvox/action@v1
- uses: kategengler/put-built-npm-package-contents-on-branch@v1.0.0
- uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0
with:
branch: dist
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
publish:
name: Publish to npm
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout + Install node + Install deps with pnpm
uses: wyvox/action@v1

- name: auto-dist-tag
run: npx auto-dist-tag --write
working-directory: './addon/'

- name: publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
working-directory: './addon/'
1 change: 1 addition & 0 deletions CHANGELOG.md
1 change: 1 addition & 0 deletions CONTRIBUTING.md
9 changes: 0 additions & 9 deletions LICENSE.md

This file was deleted.

1 change: 1 addition & 0 deletions LICENSE.md
223 changes: 0 additions & 223 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
1 change: 1 addition & 0 deletions RELEASE.md
2 changes: 0 additions & 2 deletions addon/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
README.md
LICENSE.md
9 changes: 9 additions & 0 deletions addon/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2017

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 8289701

Please sign in to comment.