-
-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (32 loc) · 914 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI / Release
on:
workflow_dispatch:
jobs:
release:
if: github.actor == 'jeremybarbet'
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: yarn
- name: Set releaser settings
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Set .npmrc
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
- name: Release
run: yarn release:ci
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}