diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7c70c0f..4f93e8f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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