Skip to content

Commit

Permalink
chore: update publish yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yinkaihui committed Nov 10, 2023
1 parent cc368eb commit fd20586
Showing 1 changed file with 44 additions and 10 deletions.
54 changes: 44 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,59 @@ on:
- aplha

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn && yarn icon
- run: yarn test
# build:
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@master

# - name: install
# run: yarn run dependencies

# - name: setup node
# uses: actions/setup-node@v3
# with:
# node-version: 16
# cache: 'yarn'

# - name: run-icon
# run: yarn icon

# - name: mock-time
# uses: szenius/set-timezone@v1.0
# with:
# timezoneLinux: 'Asia/Singapore'
# timezoneMacos: 'Asia/Singapore'
# timezoneWindows: 'Singapore Standard Time'

# - name: test:client
# run: yarn test:client

# - name: test:node
# run: yarn test:node

publish-npm:
needs: build
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: install
run: yarn run dependencies

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'

- name: run-icon
run: yarn icon

- run: npm publish --access=public --tag=${{ github.event.inputs.dist_tag }}
env:
NODE_AUTH_TOKEN: ${{secrets.ARCO_BOT_NPM_TOKEN}}

0 comments on commit fd20586

Please sign in to comment.