Skip to content

Commit

Permalink
ci: fix bun type issue-12
Browse files Browse the repository at this point in the history
  • Loading branch information
ogzhanolguncu committed May 8, 2024
1 parent 9088019 commit 8d3a030
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,35 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Get Version
- name: Get version
id: version
run: echo "::set-output name=version::v0.0.0-ci.${GITHUB_SHA}-$(date +%Y%m%d%H%M%S)"

- name: Set Version
run: |
echo $(jq --arg v "${{ steps.version.outputs.version }}" '(.version) = $v' package.json) > package.json
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
- name: Set version
run: |
echo $(jq --arg v "${{ steps.version.outputs.version }}" '(.version) = $v' package.json) > package.json
- name: Install Dependencies
run: bun install

- name: Build
run: bun run build

- name: SET NPM_TOKEN
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
- name: Set NPM_TOKEN
run: npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}

- name: Publish CI Version
- name: Publish ci version
working-directory: ./dist
run: npm publish --tag=ci --verbose
run: |
npm pkg delete scripts.prepare
npm publish --tag=ci --verbose

0 comments on commit 8d3a030

Please sign in to comment.