Skip to content

Commit

Permalink
fixing publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Thre4dripper committed Oct 20, 2024
1 parent b2d109a commit d893b7e
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
run: yarn install --frozen-lockfile

- name: Build
run: rm -rf dist && yarn build
run: yarn build

- name: Prepare Template
run: |
Expand All @@ -113,9 +113,12 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: build
include-hidden-files: true
path: |
./**
!node_modules/**
./dist
./package.json
./README.md
./LICENSE
publish:
name: Publish to NPM
Expand All @@ -129,16 +132,22 @@ jobs:
name: build
path: .

- name: List files
run: ls -R

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Publish package on NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Fail Job
run: exit 1

# - name: Publish package on NPM
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

release:
name: Create Release
Expand Down

0 comments on commit d893b7e

Please sign in to comment.