Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwaves-ofc committed Jan 2, 2024
2 parents cc403d6 + ac6f97f commit 4118076
Showing 1 changed file with 1 addition and 49 deletions.
50 changes: 1 addition & 49 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:

- run: npm install

- run: |
npm run lint
npm run format
- name: Build the package
run: npm run build

Expand All @@ -48,50 +44,6 @@ jobs:
preview=$(node -p 'require("./package.json").preview ? "true" : "false"')
echo "::set-output name=preview::$preview"
publish-dev:
needs: build
runs-on: ubuntu-latest

if: needs.build.outputs.preview == 'true'

steps:
- uses: actions/checkout@v3

- name: Download artifact
uses: actions/download-artifact@v2
with:
name: dist-folder
path: dist

- run: ls

- name: Publish to NPM (Dev Version)
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm publish --tag=dev
publish-prod:
needs: build
runs-on: ubuntu-latest

if: needs.build.outputs.preview != 'true'

steps:
- uses: actions/checkout@v3

- name: Download artifact
uses: actions/download-artifact@v2
with:
name: dist-folder
path: dist

- run: ls

- name: Publish to NPM (Prod Version)
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm publish
release:
needs: build
runs-on: ubuntu-latest
Expand All @@ -106,4 +58,4 @@ jobs:
body: |
Release v${{ needs.build.outputs.tag }}
draft: false
prerelease: ${{ needs.build.outputs.preview == 'true' }}
prerelease: ${{ needs.build.outputs.preview == 'true' }}

0 comments on commit 4118076

Please sign in to comment.