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
5
.github/workflows/yarn-gulp.yml
vendored
5
.github/workflows/yarn-gulp.yml
vendored
@ -12,7 +12,8 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x, 16.x, 18.x]
|
||||
node-version: 18
|
||||
# node-version: [14.x, 16.x, 18.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -32,3 +33,5 @@ jobs:
|
||||
- name: Build & zip package
|
||||
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 easyimport = require('postcss-easy-import');
|
||||
|
||||
const REPO = 'TryGhost/Casper';
|
||||
const REPO_READONLY = 'TryGhost/Casper';
|
||||
const REPO = 'tryghost/Casper';
|
||||
const REPO_READONLY = 'tryghost/Casper';
|
||||
const CHANGELOG_PATH = path.join(process.cwd(), '.', 'changelog.md');
|
||||
|
||||
function serve(done) {
|
||||
@ -113,6 +113,8 @@ exports.release = async () => {
|
||||
console.log(`\nCreating release for ${newVersion}...`);
|
||||
|
||||
const githubToken = process.env.GST_TOKEN;
|
||||
const repo_readonly = process.env.REPO_READONLY ?? REPO_READONLY;
|
||||
const repo = process.env.REPO ?? REPO;
|
||||
|
||||
if (!githubToken) {
|
||||
console.log('Please configure your environment with a GitHub token located in GST_TOKEN');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user