Skip to content

Commit

Permalink
Merge pull request #2 from hyper63/tillathehun0/refactor-env
Browse files Browse the repository at this point in the history
refactor: power all functions off shared environment
  • Loading branch information
TillaTheHun0 authored Oct 8, 2021
2 parents a0c2620 + a3297b0 commit e169625
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 252 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

name: test

on:
push:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm test
env:
CI: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- *string* `bump-to` **Required**: the semver comptaible version to bump to
- *string* `package` **Optional**: the package name that contains the files to bump. Great for repos with multiple independently versioned packages ie. in a monorepo. Example: `app-opine` will find a package in `*/**/app-opine`
- *string* `prefix` **Optional**: prefix to use for the git tag. Example: `app-opine` prefix and `v1.3.2` version will result in a tag of `[email protected]`. **default**: the `package` input.
- *string* `runtime` **Optional**: the runtime for the package: This dictates which manifest files are bumped. `egg.json` , `package.json` and `package-lock.json` for `node` or `deno`. Currently supports `node`, `deno`, or `javascript`. **default**: `deno`
- *string* `runtime` **Optional**: the runtime for the package: This dictates which manifest files are bumped. `egg.json` , `package.json` and `package-lock.json` for `node` or `deno`. Currently supports `node`, `deno`, or `javascript`. **default**: `javascript`

### Outputs

Expand Down
223 changes: 112 additions & 111 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

const core = require('@actions/core')

const { run } = require('./main')
const { run } = require('./main')()

run().catch(err => core.setFailed(err.message))
Loading

0 comments on commit e169625

Please sign in to comment.