Skip to content

fetch programming languages names from wikidata #149

fetch programming languages names from wikidata

fetch programming languages names from wikidata #149

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches:
- main
pull_request:
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 24.x
- run: npm ci
- name: Lint commit messages
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
npx commitlint --from=${{ github.event.pull_request.base.sha }} --to=${{ github.event.pull_request.head.sha }} --verbose
else
npx commitlint --from=HEAD~1 --to=HEAD --verbose
fi
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24.x
- run: npm ci
- run: npm run build
- run: npm run test
release:
if: ${{ github.ref == 'refs/heads/main' }}
needs: [ test, commitlint ]
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
pages: write
issues: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- run: npm ci
- run: npm run build --if-present
- name: Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: npx semantic-release