Skip to content

Define working directory for action #122

Define working directory for action

Define working directory for action #122

Workflow file for this run

name: publish
on:
push:
branches:
- master
- main
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./testops-api
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- run: |
npm ci --omit=optional -f
npm run build
- uses: readmeio/rdme@v8
with:
rdme: openapi ./src.yaml --key=${{ secrets.README_KEY }} --id=6172e1f931427d3f983e34ff
- uses: rtCamp/action-slack-notify@v2
env:
SLACK_ICON: https://github.com/github.png?size=64
SLACK_USERNAME: GitHub Actions
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}