-
Notifications
You must be signed in to change notification settings - Fork 23
57 lines (46 loc) · 1.18 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
workflow_dispatch:
workflow_call:
push:
paths:
- 'src/**'
- 'yarn.lock'
branches:
- 'master'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI: true
jobs:
Release:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
packages: write
contents: write
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- uses: actions/checkout@v4
with:
fetch-depth: 30
persist-credentials: false
- uses: FranzDiebold/github-env-vars-action@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Yarn
run: yarn install --frozen-lockfile
- name: Test
run: |
yarn test
- name: Release
run: |
git config --global user.email "support@dev.me"
git config --global user.name "Dev.me Team"
npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
node release.mjs