Skip to content

Commit 40b34d7

Browse files
authored
Merge pull request #25 from swup/update-github-actions
Use same GitHub actions as `@swup/scroll-plugin`
2 parents 861d021 + 731cba4 commit 40b34d7

File tree

3 files changed

+39
-26
lines changed

3 files changed

+39
-26
lines changed

.github/ISSUE_TEMPLATE/issue-template.md

-22
This file was deleted.

.github/workflows/npm-publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
publish-npm:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v1
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
1515
with:
16-
node-version: 12
17-
registry-url: https://registry.npmjs.org/
16+
node-version: 16
17+
registry-url: https://registry.npmjs.org
1818
- run: npm ci
1919
- run: npm publish --access public
2020
env:

.github/workflows/version-update.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow bumps the package.json version and creates a PR
2+
3+
name: Update package version
4+
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
segment:
9+
description: 'Semver segment to update'
10+
required: true
11+
default: 'patch'
12+
type: choice
13+
options:
14+
- minor
15+
- patch
16+
17+
jobs:
18+
update-version:
19+
name: Update package version
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: 16
26+
- run: echo "Updating ${{ inputs.segment }} version"
27+
- name: Update version
28+
run: npm --no-git-tag-version version ${{ inputs.segment }}
29+
- uses: peter-evans/create-pull-request@v4
30+
with:
31+
base: 'master'
32+
branch: 'version/automated'
33+
title: 'Update package version (automated)'
34+
commit-message: 'Update package version'
35+
body: 'Automated update to ${{ inputs.segment }} version'

0 commit comments

Comments
 (0)