Skip to content

Commit

Permalink
Merge pull request #4 from expressots/cicd/adjust-build
Browse files Browse the repository at this point in the history
fix: adjust build pipeline
  • Loading branch information
rsaz authored Oct 10, 2023
2 parents 8402ef1 + 4f164a2 commit 0ce82d7
Showing 1 changed file with 41 additions and 42 deletions.
83 changes: 41 additions & 42 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
# name: Build and Publish to NPM

# on:
# push:
# branches:
# - main
# pull_request:
# # The branches below must be a subset of the branches above
# branches: [ "main" ]
# pull_request_target:
# types: [opened, synchronize, reopened]

# jobs:
# build:
# runs-on: ubuntu-latest

# steps:
# - name: Checkout code
# uses: actions/checkout@v2

# - name: Use Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '18.11.0'

# - name: Install Dependencies
# run: npm install

# - name: Build
# run: npm run build:linux

#- name: Unit Tests
# working-directory: packages/core
# run: npm test
# env:
# CI: true

# - name: Set up .npmrc
# run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
# - name: Install dependencies
# run: npm ci

name: Build

on:
push:
branches:
- main
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "18.11.0"

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

#- name: Unit Tests
# working-directory: .
# run: npm test
# env:
# CI: true

#- name: Set up .npmrc
# run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
#- name: Install dependencies
# run: npm ci

0 comments on commit 0ce82d7

Please sign in to comment.