chore: update assets #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.ts' | |
- '**.json' | |
jobs: | |
update: | |
if: github.repository_owner == 'PreMiD' | |
name: Update activities | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: npm | |
- name: Install pmd | |
run: npm ci | |
- name: Update activities | |
run: npx pmd release | |
env: | |
CONNECT_TO_DEV: ${{ vars.CONNECT_TO_DEV}} | |
MONGO_URL: ${{ secrets.MONGO_URL }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |