Skip to content

Commit

Permalink
Merge pull request #43 from ubie-oss/fix-publish-workflow
Browse files Browse the repository at this point in the history
fix publish.yml
  • Loading branch information
takanorip authored Aug 9, 2024
2 parents 3169027 + 3c7ae1a commit cc200e3
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '16.x'
registry-url: "https://registry.npmjs.org"
cache: "npm"
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

- run: npm ci

- name: build figma
run: npm run build:figma
env:
FIGMA_TOKEN: ${{ secrets.UBIE_FIGMA_TOKEN }}
FIGMA_DESIGN_TOKEN_FILE_KEY: ${{ secrets.FIGMA_DESIGN_TOKEN_FILE_KEY }}

- name: build tokens
run: npm run build:tokens

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.UBIE_NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.UBIE_NPM_TOKEN }}

0 comments on commit cc200e3

Please sign in to comment.