Skip to content

Commit

Permalink
fix: first release
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Apr 2, 2023
1 parent 35e7db8 commit 6d3c4ca
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,32 +63,31 @@ jobs:
- name: Build πŸ—œοΈ
run: npm run build

############ Requires NPM_TOKEN in secrets ############
# Release:
# needs: [Test, Coverage, Lint, Build]
# if: |
# github.ref == 'refs/heads/main' &&
# github.event.repository.fork == false
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Code
# uses: actions/checkout@v3
# - name: Install Node
# uses: actions/setup-node@v3
# with:
# node-version: 'lts/*'
# - name: Install Dependencies
# run: npm ci
# - name: Build πŸ—œοΈ
# run: |
# npm run build
# if ! git diff --quiet; then
# git config --global user.email "<>"
# git config --global user.name "CI Build"
# git commit -am "πŸ—œοΈ build [skip ci]"
# fi
# - name: Release πŸŽ‰
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npx semantic-release
Release:
needs: [Test, Coverage, Lint, Build]
if: |
github.ref == 'refs/heads/main' &&
github.event.repository.fork == false
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Install Dependencies
run: npm ci
- name: Build πŸ—œοΈ
run: |
npm run build
if ! git diff --quiet; then
git config --global user.email "<>"
git config --global user.name "CI Build"
git commit -am "πŸ—œοΈ build [skip ci]"
fi
- name: Release πŸŽ‰
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

0 comments on commit 6d3c4ca

Please sign in to comment.