Skip to content

Commit 8289701

Browse files
authored
Merge pull request #1135 from emberjs/kg-add-ci-publishing
2 parents 5ea254c + 09fc8f6 commit 8289701

15 files changed

+670
-517
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- main
78
- 'v*'
89
pull_request:
910
schedule:
@@ -47,7 +48,7 @@ jobs:
4748

4849
steps:
4950
- uses: wyvox/action@v1
50-
with:
51+
with:
5152
pnpm-args: '--no-lockfile'
5253
- run: pnpm test:ember
5354
working-directory: test-app

.github/workflows/push-dist.yml renamed to .github/workflows/publish-to-branch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Push dist
1+
name: Publish to branch
22

33
on:
44
push:
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: wyvox/action@v1
15-
- uses: kategengler/put-built-npm-package-contents-on-branch@v1.0.0
15+
- uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0
1616
with:
1717
branch: dist
1818
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
publish:
10+
name: Publish to npm
11+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout + Install node + Install deps with pnpm
15+
uses: wyvox/action@v1
16+
17+
- name: auto-dist-tag
18+
run: npx auto-dist-tag --write
19+
working-directory: './addon/'
20+
21+
- name: publish to npm
22+
run: npm publish
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
25+
working-directory: './addon/'

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addon/CHANGELOG.md

CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addon/CONTRIBUTING.md

LICENSE.md

-9
This file was deleted.

LICENSE.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addon/LICENSE.md

README.md

-223
This file was deleted.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addon/README.md

RELEASE.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addon/RELEASE.md

addon/.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
README.md
2-
LICENSE.md

addon/LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017
4+
5+
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:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
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.

0 commit comments

Comments
 (0)