Skip to content

Commit

Permalink
Merge pull request #15 from shadiabuhilal/fixBuild
Browse files Browse the repository at this point in the history
Adding master-workflows.yml
  • Loading branch information
shadiabuhilal authored Oct 24, 2023
2 parents 439daf9 + f9186af commit 6f33d81
Show file tree
Hide file tree
Showing 4 changed files with 9,616 additions and 2,996 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/master-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: pull_request job

on:
pull_request:
branches: '*'
push:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
- name: Release
# Check if it's on master branch, then push
if: ${{ github.ref == 'refs/heads/branch' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
run: npx semantic-release
103 changes: 0 additions & 103 deletions .github/workflows/release_package.yml

This file was deleted.

Loading

0 comments on commit 6f33d81

Please sign in to comment.