Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTorresDev authored Dec 19, 2023
1 parent ab17981 commit 04f52a1
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Release
name: Build

on:
push:
Expand Down Expand Up @@ -46,41 +46,3 @@ jobs:
with:
name: build-artifact
path: dist

release:
name: 🚀 Release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: build-artifact
path: dist
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Set correct path
run: sed -i "s/\/dist//g" package.json
- name: Copy files
run: |
cp README.md dist
cp LICENSE dist
cp package.json dist
cp .npmignore dist
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 04f52a1

Please sign in to comment.