mirror of
https://github.com/spaytac/Casper.git
synced 2026-01-21 16:54:52 +00:00
**update** github actions
This commit is contained in:
parent
92de638579
commit
4e27a49fcf
7
.github/workflows/yarn-gulp.yml
vendored
7
.github/workflows/yarn-gulp.yml
vendored
@ -12,7 +12,8 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [14.x, 16.x, 18.x]
|
node-version: 18
|
||||||
|
# node-version: [14.x, 16.x, 18.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -31,4 +32,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Build & zip package
|
- name: Build & zip package
|
||||||
run: yarn zip
|
run: yarn zip
|
||||||
|
|
||||||
|
- name: Release package
|
||||||
|
run: gulp release
|
||||||
@ -19,8 +19,8 @@ const colorFunction = require('postcss-color-mod-function');
|
|||||||
const cssnano = require('cssnano');
|
const cssnano = require('cssnano');
|
||||||
const easyimport = require('postcss-easy-import');
|
const easyimport = require('postcss-easy-import');
|
||||||
|
|
||||||
const REPO = 'TryGhost/Casper';
|
const REPO = 'tryghost/Casper';
|
||||||
const REPO_READONLY = 'TryGhost/Casper';
|
const REPO_READONLY = 'tryghost/Casper';
|
||||||
const CHANGELOG_PATH = path.join(process.cwd(), '.', 'changelog.md');
|
const CHANGELOG_PATH = path.join(process.cwd(), '.', 'changelog.md');
|
||||||
|
|
||||||
function serve(done) {
|
function serve(done) {
|
||||||
@ -113,6 +113,8 @@ exports.release = async () => {
|
|||||||
console.log(`\nCreating release for ${newVersion}...`);
|
console.log(`\nCreating release for ${newVersion}...`);
|
||||||
|
|
||||||
const githubToken = process.env.GST_TOKEN;
|
const githubToken = process.env.GST_TOKEN;
|
||||||
|
const repo_readonly = process.env.REPO_READONLY ?? REPO_READONLY;
|
||||||
|
const repo = process.env.REPO ?? REPO;
|
||||||
|
|
||||||
if (!githubToken) {
|
if (!githubToken) {
|
||||||
console.log('Please configure your environment with a GitHub token located in GST_TOKEN');
|
console.log('Please configure your environment with a GitHub token located in GST_TOKEN');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user