Skip to content

Commit 0e56d6a

Browse files
author
Llorenç Muntaner
authored
Merge branch 'main' into lm-test-icrc-txs
2 parents 9f4003b + afd3747 commit 0e56d6a

File tree

5 files changed

+64
-73
lines changed

5 files changed

+64
-73
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# The codebase is owned by the Identity team at DFINITY
2-
# For questions, reach out to: <dept-identity@dfinity.org >
3-
* @dfinity/identity
1+
# The codebase is owned by the Cross Chain team at DFINITY
2+
* @dfinity/cross-chain-team

.github/workflows/nightly.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 56 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,75 @@
11
name: Publish Release
22

33
on:
4+
# Release
45
release:
56
types: [released]
7+
# Nightly
8+
workflow_dispatch:
9+
schedule:
10+
- cron: "0 0 * * *"
11+
12+
run-name: >-
13+
${{
14+
github.event_name == 'release' && 'Publish Release'
15+
|| (github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && 'Next Publication'
16+
|| 'Publish Release' }}
617
718
jobs:
819
publish:
9-
runs-on: ubuntu-20.04
10-
20+
if: github.event_name == 'release'
21+
runs-on: ubuntu-latest
22+
environment: release
23+
permissions:
24+
contents: read
25+
id-token: write
1126
steps:
1227
- name: Checkout
13-
uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
28+
uses: actions/checkout@v5
29+
- uses: actions/setup-node@v6
1530
with:
16-
node-version: '18.x'
31+
node-version: '24'
1732
registry-url: 'https://registry.npmjs.org'
18-
- run: npm install -g npm
33+
- name: Install OS dependencies
34+
run: |
35+
sudo apt-get update
36+
# Required for USB functionality
37+
sudo apt-get install -y libusb-1.0-0-dev
38+
# Required for Linux udev/device detection
39+
sudo apt-get install -y libudev-dev
1940
- name: Install Dependencies
2041
run: npm ci
2142
- name: Build
2243
run: npm run build
23-
- name: Set up npm
24-
run: printf '%s\n' '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' registry=https://registry.npmjs.org/ always-auth=true >> .npmrc
2544
- name: Publish
2645
run: npm publish --access public
2746
env:
28-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
47+
NPM_CONFIG_PROVENANCE: 'true'
48+
49+
publish-nightly:
50+
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
51+
runs-on: ubuntu-latest
52+
environment: release
53+
permissions:
54+
contents: read
55+
id-token: write
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v5
59+
- uses: actions/setup-node@v6
60+
with:
61+
node-version: '24'
62+
registry-url: 'https://registry.npmjs.org'
63+
- name: Install OS dependencies
64+
run: |
65+
sudo apt-get update
66+
# Required for USB functionality
67+
sudo apt-get install -y libusb-1.0-0-dev
68+
# Required for Linux udev/device detection
69+
sudo apt-get install -y libudev-dev
70+
- name: Package next
71+
run: ./scripts/package-next
72+
- name: Publish
73+
run: npm publish --provenance --tag next
74+
env:
75+
NPM_CONFIG_PROVENANCE: 'true'

LICENSE

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -174,28 +174,3 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
174174
of your accepting any such warranty or additional liability.
175175

176176
END OF TERMS AND CONDITIONS
177-
178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright 2021 DFINITY Stiftung.
190-
191-
Licensed under the Apache License, Version 2.0 (the "License");
192-
you may not use this file except in compliance with the License.
193-
You may obtain a copy of the License at
194-
195-
http://www.apache.org/licenses/LICENSE-2.0
196-
197-
Unless required by applicable law or agreed to in writing, software
198-
distributed under the License is distributed on an "AS IS" BASIS,
199-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200-
See the License for the specific language governing permissions and
201-
limitations under the License.

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)