Skip to content

Commit

Permalink
fix: fix release process
Browse files Browse the repository at this point in the history
  • Loading branch information
Bielik20 committed Aug 12, 2022
1 parent 9fed296 commit 7ddf390
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ jobs:
- name: Start Release
id: semantic
run: npx semantic-release --dry-run
- name: Build
run: yarn nx affected --target build --parallel --base ${{ steps.semantic.outputs.last-head || 'HEAD' }} --with-deps
- name: Publish
run: yarn nx affected --target publish --parallel --base ${{ steps.semantic.outputs.last-head || 'HEAD' }} --with-deps --pkgVersion ${{ steps.semantic.outputs.next-version }} --tag ${{ steps.semantic.outputs.channel }}
run: yarn nx affected --target publish --parallel --base ${{ steps.semantic.outputs.last-head || 'HEAD' }} --pkgVersion ${{ steps.semantic.outputs.next-version }} --tag ${{ steps.semantic.outputs.channel }}
- name: Finish Release
run: npx semantic-release
3 changes: 3 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"publish": {
"dependsOn": ["build", "^publish"]
},
"build": {
"dependsOn": ["^build"]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-serverless/src/executors/sls/executor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Sls Executor', () => {

it('should pass inline arguments', async () => {
const output = await executor(
{ foo: 'foo-value', bar: 'bar-value', command: 'deploy' },
{ foo: 'foo-value', bar: 'bar-value', command: 'deploy ' },
testContext,
);

Expand Down

0 comments on commit 7ddf390

Please sign in to comment.