diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9b3ab64 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [21.x] + + steps: + - name: Git checkout + uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + env: { NODE_OPTIONS: --openssl-legacy-provider } + run: npm i && cd example/ && npm i + + - name: Build methone + env: { NODE_OPTIONS: --openssl-legacy-provider } + run: npm run build + + - name: Build example website + env: { NODE_OPTIONS: --openssl-legacy-provider } + run: cd example/ && npm run build diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml deleted file mode 100644 index 66e42d4..0000000 --- a/.github/workflows/npm-publish.yml +++ /dev/null @@ -1,26 +0,0 @@ - -name: Install and build - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - test: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x] - - steps: - - name: Git checkout - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci