-
Notifications
You must be signed in to change notification settings - Fork 22
48 lines (42 loc) · 1.3 KB
/
release.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
name: Changelog
on:
push:
branches:
- master
jobs:
release:
name: Changelog
runs-on: ubuntu-latest
steps:
- name: Check out branch
uses: actions/checkout@v2
with:
fetch-depth: 0 # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
- name: Set up Node.js 16.16.0
uses: actions/setup-node@v2
with:
node-version: 16.16.0
- name: Install dependencies
run: npm install
env:
CI: true
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to VSCode Marketplace
if: steps.changesets.outputs.published == 'true'
working-directory: ./packages/vscode-css-variables
run: |
npm i
npx vsce publish -p ${{ secrets.VSCE_PAT }}
- name: Publish to OpenVSX
if: steps.changesets.outputs.published == 'true'
working-directory: ./packages/vscode-css-variables
run: |
npm i
npx ovsx publish -p ${{ secrets.OVSX_TOKEN }}