-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.08 KB
/
Copy pathrelease.yml
File metadata and controls
44 lines (37 loc) · 1.08 KB
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
name: Release Workflow
on:
push:
tags:
- 'v*'
permissions:
contents: write
actions: read
checks: write
packages: write
jobs:
release-build:
uses: ./.github/workflows/build.yml
secrets: inherit
release:
runs-on: ubuntu-latest
needs: release-build
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: Download language-server artifact
uses: actions/download-artifact@v4
with:
name: cml-language-server
path: ./cml-ls
- name: Prepare publication
run: sed -i -e 's/<TOKEN>/${{ secrets.GITHUB_TOKEN }}/g' .yarnrc.yml
- name: Publish to GitHub Package Registry
run: yarn npm publish --access public
- name: Create GitHub release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: ./cml-ls