Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

55 changes: 0 additions & 55 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf

dist/** -diff linguist-generated=true
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
npm install
- run: |
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,7 @@ Thumbs.db

# Ignore built ts files
__tests__/runner/*
lib/**/*

# IDE files
.idea
*.code-workspace
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.9.0
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc.json

This file was deleted.

59 changes: 30 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@ It should only be used by `VisualPinball.*` projects in workflows and should not

`VisualPinball.*` projects use the following versioning:


| | package.json | latest repo tag | new tag/publish version | notes |
|---|-----------------|-----------------|-------------------------|----------------------------------------------------------------|
| 1 | 0.0.1-preview.0 | *n/a* | 0.0.1-preview.0 | first release |
| 2 | 0.0.1-preview.0 | 0.0.1-preview.0 | 0.0.1-preview.1 | auto-incr |
| 3 | 0.0.1-preview.0 | 0.0.1-preview.1 | 0.0.1-preview.2 | auto-incr |
| 4 | 0.0.1-preview.0 | 0.0.1-preview.2 | 0.0.1.preview.3 | auto-incr |
| 5 | 0.0.1 | 0.0.1-preview.3 | 0.0.1 | manual bump |
| 6 | 0.1.0-preview.0 | 0.0.1 | 0.1.0-preview.0 | reset, since no previous 0.1.0-preview found |
| 7 | 0.2.0 | 0.1.0-preview.0 | 0.2.0 | we noticed that we actually want to bump minor, not just patch |
| 6 | 0.2.1-preview.0 | 0.2.0 | 0.2.1-preview.0 | business as usual |

| | package.json | latest repo tag | new tag/publish version | notes |
| --- | --------------- | --------------- | ----------------------- | -------------------------------------------------------------- |
| 1 | 0.0.1-preview.0 | _n/a_ | 0.0.1-preview.0 | first release |
| 2 | 0.0.1-preview.0 | 0.0.1-preview.0 | 0.0.1-preview.1 | auto-incr |
| 3 | 0.0.1-preview.0 | 0.0.1-preview.1 | 0.0.1-preview.2 | auto-incr |
| 4 | 0.0.1-preview.0 | 0.0.1-preview.2 | 0.0.1.preview.3 | auto-incr |
| 5 | 0.0.1 | 0.0.1-preview.3 | 0.0.1 | manual bump |
| 6 | 0.1.0-preview.0 | 0.0.1 | 0.1.0-preview.0 | reset, since no previous 0.1.0-preview found |
| 7 | 0.2.0 | 0.1.0-preview.0 | 0.2.0 | we noticed that we actually want to bump minor, not just patch |
| 6 | 0.2.1-preview.0 | 0.2.0 | 0.2.1-preview.0 | business as usual |

This action was inspired by [latest-tag](https://github.com/EndBug/latest-tag) and was derived from [this template](https://github.com/actions/typescript-action).

Expand All @@ -40,38 +38,41 @@ For inputs, the following options are available:
Example yml:

```yaml
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch next version
id: nextVersion
uses: VisualPinball/next-version-action@v0.1.7
with:
tagPrefix: 'v'
- name: Log next version outputs
run: |
echo "${{ steps.nextVersion.outputs.version }}"
echo "${{ steps.nextVersion.outputs.nextVersion }}"
echo "${{ steps.nextVersion.outputs.nextTag }}"
echo "${{ steps.nextVersion.outputs.isBump }}"
echo "${{ steps.nextVersion.outputs.isPrerelease }}"
```
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch next version
id: nextVersion
uses: VisualPinball/next-version-action@v0.1.7
with:
tagPrefix: 'v'
- name: Log next version outputs
run: |
echo "${{ steps.nextVersion.outputs.version }}"
echo "${{ steps.nextVersion.outputs.nextVersion }}"
echo "${{ steps.nextVersion.outputs.nextTag }}"
echo "${{ steps.nextVersion.outputs.isBump }}"
echo "${{ steps.nextVersion.outputs.isPrerelease }}"
```

**Note:** For this action to work properly, make sure to configure `actions/checkout@v2` with a `fetch-depth: 0`.

## Development:

Install the dependencies
Install the dependencies

```bash
$ npm install
```

Build the typescript and package it for distribution

```bash
$ npm run build && npm run package
```

Run the tests

```bash
$ npm test

Expand Down
1 change: 1 addition & 0 deletions dist/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading