-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (27 loc) · 911 Bytes
/
publish-next.yaml
File metadata and controls
35 lines (27 loc) · 911 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
30
31
32
33
34
35
name: Publish to the "next" release channel
on:
push:
branches:
- main
jobs:
publish-next:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: 'https://npm.pkg.github.com'
- run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- run: yarn publish --ignore-scripts --no-git-tag-version --new-version $PACKAGE_JSON_VERSION-$(git rev-parse --short "$GITHUB_SHA") --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE_JSON_VERSION: ${{ steps.package-version.outputs.current-version}}