Skip to content

Commit

Permalink
Merge pull request #22 from zazuko/changesets
Browse files Browse the repository at this point in the history
Configure Changesets
  • Loading branch information
ludovicm67 authored Apr 23, 2024
2 parents 3092552 + 6f6ea26 commit 6838bf5
Show file tree
Hide file tree
Showing 8 changed files with 2,131 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"privatePackages": {
"tag": true,
"version": true
},
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/fair-penguins-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"varnish-post": major
---

Changed base from Alpine to Ubuntu.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.git
test
Dockerfile
node_modules/
47 changes: 47 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release

runs-on: ubuntu-latest

steps:
# This allow GitHub Actions to trigger the jobs for tags if needed
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_PRIVATE_KEY }}

- name: Checkout Repo
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request or create tag
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
commit: "chore: release"
title: "Merge to release"
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "varnish-post",
"version": "1.2.0",
"description": "Custom Docker image for Varnish",
"main": "index.js",
"repository": "[email protected]:zazuko/varnish-post.git",
"author": "Zazuko GmbH",
"license": "MIT",
"private": true,
"scripts": {
"release": "changeset tag"
},
"devDependencies": {
"@changesets/cli": "^2.27.1"
}
}
Loading

0 comments on commit 6838bf5

Please sign in to comment.