-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (59 loc) · 1.82 KB
/
deploy-BETA.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
#######################################
# Start the job on all push to master #
#######################################
name: "Build & Deploy - Beta"
on:
push:
branches:
- master
permissions: read-all
concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true
###############
# Set the Job #
###############
jobs:
# Deploy to NPM
deploy_to_npm:
name: Deploy to NPM (beta)
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write
environment:
name: beta
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/[email protected]
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
scope: rubenhalman
- name: Install Dependencies
run: |
npm ci
npm run build
cp package*.json out && cp tsconfig.cjs.json out
mkdir -p out/src
mkdir -p out/src/media
cp ./src/media/bannerslim.png out/src/media
cp readme.md out
- name: Semantic Release Dependency
run: npm install -g @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/npm conventional-changelog-conventionalcommits semantic-release
- name: Publish Beta
env:
GITHUB_TOKEN: ${{ secrets.TOKENX }}
NPM_TOKEN: ${{ secrets.NPM_TOKENX }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKENX }}
run: semantic-release