forked from lmmfranco/nintendo-switch-eshop
-
-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (33 loc) · 933 Bytes
/
continuous-deployment.yml
File metadata and controls
36 lines (33 loc) · 933 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
36
name: Continuous Delivery
on:
push:
branches:
- main
permissions:
contents: write
packages: write
id-token: write
jobs:
Publish:
name: Publish Next
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
uses: sapphiredev/.github/actions/install-yarn-dependencies@main
with:
node-version: 20
- name: Bump version
run: yarn bump --preid "next.$(git rev-parse --verify --short HEAD)" --skip-changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to NPM
run: |
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
yarn config set npmPublishRegistry "https://registry.yarnpkg.com"
yarn npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}