Skip to content

ci: hardcode repo url, no need for a variable #2

ci: hardcode repo url, no need for a variable

ci: hardcode repo url, no need for a variable #2

Workflow file for this run

name: Build
on:
push:
branches: ['main']
pull_request:
branches: ['main']
permissions:
contents: write
issues: write
id-token: write
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Git checkout for source code analysis
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Run unit tests
run: npm run test
- name: Run qa
run: npm run qa:duplication
- name: Release
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cp package.json src/
cp README.md src/
npm run release -- --r [email protected]:jzck/Open3CL.git