Skip to content

Commit

Permalink
build(config): update release job
Browse files Browse the repository at this point in the history
  • Loading branch information
PaleBluDot committed Sep 13, 2023
1 parent 2d22381 commit 6277557
Showing 1 changed file with 1 addition and 56 deletions.
57 changes: 1 addition & 56 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- 'pavel/workflow'
- beta

jobs:
Publish:
Expand All @@ -17,59 +17,6 @@ jobs:

if: ${{ github.ref == 'refs/heads/main' }}

steps:
- name: ⎔ Setup node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
env:
HUSKY_SKIP_INSTALL: true

- name: 🏗 Build
run: npm run build

- name: 🚨 Format
run: npm run format

- name: 🚀 Release Dry Run
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
semantic_version: 18
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/github
branches: |
[
'main',
'next',
'next-major',
{name: 'beta', prerelease: true},
{name: 'alpha', prerelease: true}
]
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}

Dry:
name: 🚀 Dry Run 🚀
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [18]
os: [ubuntu-latest]

if: ${{ github.ref == 'refs/heads/pavel/workflow' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
Expand All @@ -96,8 +43,6 @@ jobs:
id: semantic
with:
semantic_version: 18
dry_run: true
ci: false
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
Expand Down

0 comments on commit 6277557

Please sign in to comment.