Skip to content

chore: Update ci-cd.yml #28

chore: Update ci-cd.yml

chore: Update ci-cd.yml #28

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
- beta
pull_request:
branches:
- main
- beta
env:
CI: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install
- run: npm run build
- run: npm run lint
# release:
# runs-on: ubuntu-latest
# needs:
# - test
# if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
# steps:
# - uses: actions/checkout@v3
# with:
# # Pulls all commits (needed for semantic release to correctly version)
# fetch-depth: 0
# persist-credentials: false
# sparse-checkout: |
# README.md
#
#
# - name: Use Node.js 20
# uses: actions/setup-node@v4
# with:
# node-version: 20.x
#
# - run: npm install
#
# - name: Download release artifact
# uses: actions/download-artifact@v3
# with:
# name: release
# path: release
#
# - name: Release 🚀
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npx semantic-release@^22
# working-directory: ./release