Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'yarn.lock'
- name: Install Dependencies
run: yarn
- name: Test
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry = 'https://registry.yarnpkg.com'
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.20.0
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,22 @@ If no `version-command` input is provided, this action will attempt to do someth
- If it finds single `*.gemspec` file, it will consider the version defined there to be the repository version.

The logic for this detection and the corresponding version commands used can be found in [`determine-version.ts`](src/determine-version.ts).

## Developing

To work on this repo do the following after cloning:

```bash
# Use exact version of Node.js as detailed in .nvmrc file
nvm install

# If you don't have Yarn v1 installed globally then use this to install
# dependencies in the repo as it's used for package management.
npm install --no-save yarn@1

# Install dependencies with yarn
npx yarn install

# Run end to end build and validation
npm run all
```