Skip to content

Commit cf8e90b

Browse files
authored
Merge pull request #35 from svrooij/ci-build
Ci build
2 parents 770602c + 268d0ea commit cf8e90b

32 files changed

+699
-16356
lines changed

.github/workflows/generator.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ on:
33
push:
44
branches:
55
- main
6+
- ci-build
67
paths:
78
- '.github/workflows/generator.yml'
89
- 'generator/sonos-docs/src/**/*.ts'
10+
- 'generator/sonos-docs/.releaserc'
911

1012
pull_request:
1113
branches:
@@ -50,24 +52,22 @@ jobs:
5052
- name: Install depencencies
5153
run: npm ci
5254
- name: Semantic Release
53-
run: npx semantic-release
54-
#uses: cycjimmy/semantic-release-action@v2
55+
uses: cycjimmy/semantic-release-action@v2
5556
id: semantic
57+
with:
58+
working_directory: generator/sonos-docs
5659
env:
5760
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5861
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
59-
- name: Did release?
60-
id: did_release
61-
run: '(test -f .new-version && echo "::set-output name=new_release_published::true" && echo "::set-output name=new_release_version::$(cat ./.new-version)") || echo "::set-output name=new_release_published::false"'
6262
- name: Setup node for Github Registry
63-
if: steps.did_release.outputs.new_release_published == 'true'
63+
if: steps.semantic.outputs.new_release_published == 'true'
6464
uses: actions/setup-node@v2
6565
with:
6666
node-version: 16
6767
registry-url: 'https://npm.pkg.github.com'
6868
scope: 'svrooij'
6969
- name: Publish To GitHub Package Registry
70-
if: steps.did_release.outputs.new_release_published == 'true'
70+
if: steps.semantic.outputs.new_release_published == 'true'
7171
run: |
7272
npm publish
7373
env:

0 commit comments

Comments
 (0)