-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: Added Bonob cool project * docs: Updated music service * ci: Releasing the generator as npm package (hopefully)
- Loading branch information
Showing
12 changed files
with
4,488 additions
and
161 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- ci-build | ||
paths: | ||
- '.github/workflows/generator.yml' | ||
- 'generator/sonos-docs/src/**/*.ts' | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- '.github/workflows/generator.yml' | ||
- 'generator/sonos-docs/src/**/*.ts' | ||
|
||
jobs: | ||
test: | ||
name: 'Build and test on Node v${{ matrix.node }}' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [14, 16] | ||
defaults: | ||
run: | ||
working-directory: generator/sonos-docs | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Install depencencies | ||
run: npm ci | ||
- name: Build library | ||
run: npm run prepack | ||
|
||
release: | ||
name: 'Release generator' | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
if: github.event_name != 'pull_request' | ||
defaults: | ||
run: | ||
working-directory: generator/sonos-docs | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- name: Install depencencies | ||
run: npm ci | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v2 | ||
id: semantic | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Setup node for Github Registry | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: 'svrooij' | ||
- name: Publish To GitHub Package Registry | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
run: | | ||
npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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
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
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
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
Oops, something went wrong.