Skip to content

Commit

Permalink
fix: switch to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
tpfrne committed Apr 4, 2024
1 parent 974a025 commit ac94570
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 27 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/pushes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build-and-release

"on":
push:
branches:
- master
pull_request:
types:
- opened
- synchronize

permissions:
contents: write
id-token: write
packages: write
pull-requests: write

jobs:
made-with-tpgha:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Setting up NodeJs
id: setup-node-js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: npm ci
run: npm ci
shell: bash

- name: npm run lint
run: npm run lint
shell: bash

- name: npm run test
run: npm run test
shell: bash

- name: npm run build
run: npm run build
shell: bash

- name: npm run release
run: npx semantic-release
shell: bash
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ src
.gitignore
.nvmrc
.releaserc
.travis.yml
.github
tsconfig.*
tslint.json
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12.21.0
v20
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ This a node API wrapper for accessing the Trustpilot APIs. You can learn all abo

## Installation

This module is built using Typescript and Node.js `v12.21.x`.

If you are not using version 4 of Node, you'll have to transpile the code down to ES5 yourself.
This module is built using Typescript and Node.js `v20.x`.

Install using `npm install trustpilot`

Expand Down

0 comments on commit ac94570

Please sign in to comment.