17bf099518
commit02ab774699Merge:0e5cda539b8b6aAuthor: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Thu Feb 23 13:33:00 2023 +0000 Merge branch 'main' of https://github.com/OllieJT/svelte-podcast commit39b8b6a983Merge:0e5cda58260a20Author: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Thu Feb 23 13:29:46 2023 +0000 Init Changesets (#4) commit8260a2078fAuthor: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Thu Feb 23 13:28:04 2023 +0000 linting commit1336175d8aAuthor: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Thu Feb 23 13:26:45 2023 +0000 update gh tooken name commitfbc2d6c581Author: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Thu Feb 23 12:26:23 2023 +0000 adds changeset to publish script commit2665d2fd54Author: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Thu Feb 23 12:26:11 2023 +0000 updates changeset config commit517219f961Author: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Thu Feb 23 12:25:50 2023 +0000 adds release script commitdda33a4426Author: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Thu Feb 23 12:13:03 2023 +0000 add changesets
33 lines
703 B
YAML
33 lines
703 B
YAML
name: 'Publish to NPM'
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: use node v16.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16.x
|
|
|
|
- name: yarn install
|
|
uses: borales/actions-yarn@v4
|
|
with:
|
|
cmd: install --frozen-lockfile
|
|
|
|
- name: Create Release Pull Request or Publish
|
|
id: changesets
|
|
uses: changesets/action@v1
|
|
with:
|
|
publish: yarn run release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|