Skip to content

Commit

Permalink
setup auto-release (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chnapy committed Aug 24, 2022
1 parent 75428cc commit 1484478
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci-cd.yml → .github/workflows/ci.yml
@@ -1,4 +1,4 @@
name: CI - CD
name: CI

on:
push:
Expand All @@ -8,7 +8,7 @@ on:

jobs:
checks:
name: Checks & deploy
name: Checks
runs-on: ubuntu-latest
timeout-minutes: 10

Expand Down Expand Up @@ -37,9 +37,3 @@ jobs:

- name: Check - Example type
run: yarn c:type ./example

- name: Publish to NPM (dry-run on PR)
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
dry-run: ${{ github.ref != 'refs/heads/master' }}
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,39 @@
name: Release

on:
push:
branches:
- master

jobs:
checks:
name: Release to NPM
runs-on: ubuntu-latest
timeout-minutes: 10

permissions:
contents: write

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Build
run: yarn build

- name: Publish to NPM - if package version changed
id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

- name: Create new release - if published to NPM before
if: ${{ steps.publish.outputs.type != 'none' }}
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.publish.outputs.version }}
generate_release_notes: true

1 comment on commit 1484478

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"with ts-gql-plugin" vs "without ts-gql-plugin" Benchmark

Benchmark suite Current: 1484478 Previous: 75428cc Ratio
performance impact %: "with ts-gql-plugin" vs "without ts-gql-plugin" 17.32 % (±2.37%) 18.5 % (±1.86%) 1.07

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.