-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 926 Bytes
/
main.yml
File metadata and controls
29 lines (29 loc) · 926 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
name: Publish package to GitHub Packages
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '12'
registry-url: 'https://npm.pkg.github.com'
- run: export CC=/usr/bin/clang
- run: export CXX=/usr/bin/clang++
- run: sudo apt-get install g++ -y
- run: sudo apt-get install -y build-essential python -y
- run: npm install -g node-gyp --unsafe-perm
- run: npm install -g node-pre-gyp --unsafe-perm
- run: npm install --legacy-peer-deps --unsafe-perm
- run: npm run prebuild
- run: npm run release:prepare
- run: npm run npm:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}