-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (46 loc) · 1.3 KB
/
pub.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
---
name: pub
on:
push:
tags: ['*']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pub:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: master
- uses: pnpm/action-setup@v3
with:
version: '*'
- uses: actions/setup-node@v4
with:
node-version: '*'
registry-url: https://registry.npmjs.org
cache: pnpm
- run: pnpm i
- uses: nixbuild/nix-quick-install-action@v29
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: echo -n ${{ github.ref_name }} > VERSION
- run: nix build .#kirsch-release
- name: release
uses: svenstaro/upload-release-action@2.7.0
with:
file: result/share/fonts/*
file_glob: true
- name: push
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: VERSION
commit_message: bump version to ${{ github.ref_name }}
- name: pub to npm
run: |
pnpm version ${{ github.ref_name }} --no-commit-hooks --no-git-tag-version --allow-same-version
pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}