forked from mattphillips/deep-object-diff
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1016 Bytes
/
Copy pathrelease.yml
File metadata and controls
42 lines (38 loc) · 1016 Bytes
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: Release
on:
push:
branches:
- main
jobs:
build:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@master
with:
node-version: '22.x'
- name: Install
run: yarn install
- name: Build
run: yarn build
- uses: actions/setup-node@master
with:
always-auth: true
registry-url: 'https://npm.pkg.github.com'
scope: '@airthium'
- name: Publish Github
continue-on-error: true
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@master
with:
registry-url: 'https://registry.npmjs.org'
scope: '@airthium'
- name: Publish NPM
run: yarn publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}