Skip to content

fix: correct permission check on attachment uploads (#156) #11

fix: correct permission check on attachment uploads (#156)

fix: correct permission check on attachment uploads (#156) #11

name: publish release
on:
push:
branches:
- master
jobs:
verify:
name: Verify replication-backend
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Run Tests with coverage
run: npm run test:cov
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_ID }}
with:
coverageLocations: coverage/lcov.info:lcov
publish:
name: Publish Release
runs-on: ubuntu-latest
needs:
- verify
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npx semantic-release