forked from arkavo-com/opentdf-client-web
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 907 Bytes
/
build.yaml
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
# This GitHub action will publish a package with a short sha
# act --secret-file act.env --container-architecture linux/amd64 --workflows .github/workflows/build.yaml
name: build
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://npm.pkg.github.com'
scope: 'arkavo-org'
- name: Update Version with Commit SHA
run: |
export VERSION=$(npm pkg get version | xargs echo)
npm pkg set version=$(echo "${VERSION}-${GITHUB_SHA::8}")
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}