Skip to content

Commit

Permalink
Build workflow improved
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed Nov 7, 2023
1 parent 176dfd2 commit dabd221
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/push.yml
@@ -0,0 +1,32 @@
# Name of our action
name: Release

# The event that will trigger the action
on:
push:
branches: [main]

# what the action will do
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
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#👇 npm token, see https://storybook.js.org/tutorials/design-systems-for-developers/react/en/distribute/ to obtain it
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn release

0 comments on commit dabd221

Please sign in to comment.