Skip to content

Commit

Permalink
chore: prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mararok committed Nov 4, 2024
1 parent 89bea1e commit 99ea5df
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.github/ @Mararok
10 changes: 10 additions & 0 deletions .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Test
description: 'execute tests'
runs:
using: 'composite'
steps:
# Yarn test
- name: Test
shell: bash
run: yarn test

19 changes: 19 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pull Request
on:
pull_request:
branches: [master]

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
- name: Yarn install
uses: hexancore/yarn-ci-install@ba9baf131eba84b6c86efb46375a530a3098bb04 # 0.1.0
- name: Lint
run: yarn lint
- name: test
uses: ./.github/actions/test
- name: build
run: yarn build
39 changes: 39 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish
env:
HUSKY: 0
on:
release:
types: [published]

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6

- name: Yarn install
uses: hexancore/yarn-ci-install@ba9baf131eba84b6c86efb46375a530a3098bb04 # 0.1.0
- name: Test
uses: ./.github/actions/test
publish:
needs: [check]
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
- name: Yarn install
uses: hexancore/yarn-ci-install@ba9baf131eba84b6c86efb46375a530a3098bb04 # 0.1.0
- name: Build
run: yarn build

# Publish package
- name: Publish
shell: bash
run: |
npm publish --provenance --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 6 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
nodeLinker: node-modules

npmPublishRegistry: "https://registry.npmjs.org"

npmRegistryServer: "https://registry.npmjs.org"

yarnPath: .yarn/releases/yarn-4.1.0.cjs
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hexancore/mocker",
"version": "1.1.2",
"version": "1.2.0",
"keywords": [
"mock",
"typescript",
Expand All @@ -20,9 +20,7 @@
"engine-strict": true,
"description": "Simple and magical mocks for TypeScript, works with jest and vitest",
"author": {
"name": "Andrzej Wasiak",
"email": "[email protected]",
"url": "https://andrzejwasiak.pl"
"name": "Andrzej Wasiak"
},
"license": "MIT",
"main": "lib/index.js",
Expand Down

0 comments on commit 99ea5df

Please sign in to comment.