-
Notifications
You must be signed in to change notification settings - Fork 0
chore: relase workflow #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,7 +7,26 @@ permissions: | |||||||||||||||||
| contents: write | ||||||||||||||||||
|
|
||||||||||||||||||
| jobs: | ||||||||||||||||||
| test: | ||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||
| strategy: | ||||||||||||||||||
| fail-fast: false | ||||||||||||||||||
| matrix: | ||||||||||||||||||
| node-version: [20.x, 22.x] | ||||||||||||||||||
| cds-version: [latest] | ||||||||||||||||||
| steps: | ||||||||||||||||||
| - uses: actions/checkout@v5 | ||||||||||||||||||
stefanrudi marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||
| - name: Use Node.js ${{ matrix.node-version }} | ||||||||||||||||||
| uses: actions/setup-node@v4 | ||||||||||||||||||
| with: | ||||||||||||||||||
| node-version: ${{ matrix.node-version }} | ||||||||||||||||||
| - run: npm i -g @sap/cds-dk@${{ matrix.cds-version }} | ||||||||||||||||||
| - run: npm i | ||||||||||||||||||
| - run: npm run build | ||||||||||||||||||
| - run: cd tests/bookshop && npm run build | ||||||||||||||||||
| - run: npm run test | ||||||||||||||||||
| publish-npm: | ||||||||||||||||||
| needs: test | ||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||
| environment: npm | ||||||||||||||||||
| steps: | ||||||||||||||||||
|
|
@@ -16,15 +35,8 @@ jobs: | |||||||||||||||||
| with: | ||||||||||||||||||
| node-version: 20 | ||||||||||||||||||
| registry-url: https://registry.npmjs.org/ | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Run Tests | ||||||||||||||||||
| run: | | ||||||||||||||||||
| npm install | ||||||||||||||||||
| npm run lint | ||||||||||||||||||
| cd tests/incidents-app && npm install | ||||||||||||||||||
| cd ../.. | ||||||||||||||||||
| npm run test | ||||||||||||||||||
|
|
||||||||||||||||||
| - run: npm i | ||||||||||||||||||
| - run: npm run build | ||||||||||||||||||
| - name: get-version | ||||||||||||||||||
| id: package-version | ||||||||||||||||||
| uses: martinbeentjes/npm-get-version-action@v1.2.3 | ||||||||||||||||||
|
|
@@ -38,6 +50,4 @@ jobs: | |||||||||||||||||
| with: | ||||||||||||||||||
| tag: 'v${{ steps.package-version.outputs.current-version }}' | ||||||||||||||||||
| body: '${{ steps.parse-changelog.outputs.body }}' | ||||||||||||||||||
| - run: npm publish --access public | ||||||||||||||||||
| env: | ||||||||||||||||||
| NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||||||||||||||||||
| - run: npm publish --access public --provenance | ||||||||||||||||||
tilwbr marked this conversation as resolved.
Show resolved
Hide resolved
tilwbr marked this conversation as resolved.
Show resolved
Hide resolved
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Should add
Suggested change
Double-check suggestion before committing. Edit this comment for amendments. Please provide feedback on the review comment by checking the appropriate box:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The original workflow passed Should restore the
Suggested change
Double-check suggestion before committing. Edit this comment for amendments. Please provide feedback on the review comment by checking the appropriate box:
|
||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.