-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (40 loc) · 1.15 KB
/
test-and-tag.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
name: Test & Publish Next
on:
# The build will be triggered on push to main
push:
branches:
- main
concurrency:
group: test-build-${{ github.ref_name }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
test-and-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Install Node.js 💻
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Set up Python 🐍
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Set up Dunamai 🪄
run: pip install -r requirements-ci.txt
- name: Install locked dependencies 🔧
run: npm ci
- name: Version ✅
run: npm version --no-git-tag-version $(dunamai from git --style semver)
- name: Test 🧪
env:
TZ: America/New_York
run: npm test
- name: Publish 📚
run: npm publish --tag next --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}