Skip to content

Commit

Permalink
ci: use Yarn instead of NPM (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas authored Mar 16, 2021
1 parent c524fd9 commit 459d81b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/npm.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: Deploy to NPM
name: Release

on:
push:
tags:
- '*'
- 'v*'

jobs:
publish:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '15'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm build
- run: yarn install
- run: yarn build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 459d81b

Please sign in to comment.