forked from FuelLabs/fuel-connectors
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.01 KB
/
release-npm-latest.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
29
30
31
32
33
34
35
36
37
name: "Release latest"
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
BUILD_VERSION: ""
jobs:
release-npm-latest:
name: Tag packages as latest
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
with:
# need this to get full git-history/clone in order to build changelogs and check changesets
fetch-depth: 0
- uses: FuelLabs/github-actions/setups/node@master
with:
node-version: 20.11.0
pnpm-version: 9.5.0
- uses: FuelLabs/github-actions/setups/npm@master
with:
npm-token: ${{ secrets.NPM_TOKEN }}
- name: Collect current version
run: |
echo "BUILD_VERSION=$(pnpm -s packages:version)" >> $GITHUB_ENV
- name: Change tag to latest
run: |
npm dist-tag add @fuels/connectors@${{ env.BUILD_VERSION }} latest
npm dist-tag add @fuels/react@${{ env.BUILD_VERSION }} latest