Skip to content

Commit 51acb82

Browse files
testing actions
1 parent 85b0835 commit 51acb82

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Dev.to Publish
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-node@v1
9+
with:
10+
node-version: '12.x'
11+
registry-url: 'https://registry.npmjs.org'
12+
- run: npm install -g axios
13+
- run: node dev-to.js
14+
env:
15+
DEV_TOKEN: ${{ secrets.DEV_TO }}

dev-to.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// const axios = require('axios');
2+
console.log('hello world')
3+
console.log(`The Dev token is ${process.env.DEV_TOKEN}`)

0 commit comments

Comments
 (0)