Skip to content

Commit

Permalink
Merge pull request #198 from storybookjs/shilman/add-auto
Browse files Browse the repository at this point in the history
Add auto release script
  • Loading branch information
thafryer authored Jul 6, 2023
2 parents f1f9a05 + c1879af commit a3d6b5a
Show file tree
Hide file tree
Showing 7 changed files with 29,986 additions and 8,420 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-pushes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
cache: npm
- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Check files are formatted with Prettier
run: npx prettier --check README.md CHANGELOG.md CONTRIBUTING.md package.json "packages/**/*.{js,jsx,ts,tsx,md,mdx,json}"
- name: Check TypeScript typings
Expand Down
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')"
steps:
- uses: actions/checkout@v2

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

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: Install dependencies
run: npm install --ignore-scripts

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm run release
Loading

0 comments on commit a3d6b5a

Please sign in to comment.