Skip to content

Commit

Permalink
Merge branch '41-tighten-render-type' into add-step
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Oct 10, 2022
2 parents f3e3044 + a3d8c69 commit 3bd2bd7
Show file tree
Hide file tree
Showing 4 changed files with 281 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on: [push]

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'skip release')"
steps:
- uses: actions/checkout@v2

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn release
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"lodash": "^4.17.15"
},
"devDependencies": {
"@auto-it/released": "^10.37.1",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
Expand All @@ -63,6 +64,12 @@
"prettier": "^1.19.1",
"typescript": "^3.7.2"
},
"auto": {
"plugins": [
"npm",
"released"
]
},
"publishConfig": {
"access": "public"
}
Expand Down
5 changes: 5 additions & 0 deletions src/includeConditionalArg.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ describe('testValue', () => {

describe('includeConditionalArg', () => {
describe('errors', () => {
it('should throw if neither arg nor global is specified', () => {
expect(() => includeConditionalArg({ if: {} }, {}, {})).toThrowErrorMatchingInlineSnapshot(
`"Invalid conditional value {}"`
);
});
it('should throw if arg and global are both specified', () => {
expect(() =>
includeConditionalArg({ if: { arg: 'a', global: 'b' } }, {}, {})
Expand Down
Loading

0 comments on commit 3bd2bd7

Please sign in to comment.